//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_exported import SotoCore

/// Service object for interacting with AWS CloudFormation service.
///
/// CloudFormation CloudFormation allows you to create and manage Amazon Web Services infrastructure deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Amazon EC2 Auto Scaling to build highly reliable, highly scalable, cost-effective applications without creating or configuring the underlying Amazon Web Services infrastructure. With CloudFormation, you declare all your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you. For more information about CloudFormation, see the CloudFormation product page. CloudFormation makes use of other Amazon Web Services products. If you need additional technical information about a specific Amazon Web Services product, you can find the product's technical documentation at docs.aws.amazon.com.
public struct CloudFormation: AWSService {
    // MARK: Member variables

    /// Client used for communication with AWS
    public let client: AWSClient
    /// Service configuration
    public let config: AWSServiceConfig

    // MARK: Initialization

    /// Initialize the CloudFormation client
    /// - parameters:
    ///     - client: AWSClient used to process requests
    ///     - region: Region of server you want to communicate with. This will override the partition parameter.
    ///     - partition: AWS partition where service resides, standard (.aws), china (.awscn), government (.awsusgov).
    ///     - endpoint: Custom endpoint URL to use instead of standard AWS servers
    ///     - middleware: Middleware chain used to edit requests before they are sent and responses before they are decoded 
    ///     - timeout: Timeout value for HTTP requests
    ///     - byteBufferAllocator: Allocator for ByteBuffers
    ///     - options: Service options
    public init(
        client: AWSClient,
        region: SotoCore.Region? = nil,
        partition: AWSPartition = .aws,
        endpoint: String? = nil,
        middleware: AWSMiddlewareProtocol? = nil,
        timeout: TimeAmount? = nil,
        byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator(),
        options: AWSServiceConfig.Options = []
    ) {
        self.client = client
        self.config = AWSServiceConfig(
            region: region,
            partition: region?.partition ?? partition,
            serviceName: "CloudFormation",
            serviceIdentifier: "cloudformation",
            serviceProtocol: .query,
            apiVersion: "2010-05-15",
            endpoint: endpoint,
            serviceEndpoints: Self.serviceEndpoints,
            variantEndpoints: Self.variantEndpoints,
            errorType: CloudFormationErrorType.self,
            xmlNamespace: "http://cloudformation.amazonaws.com/doc/2010-05-15/",
            middleware: middleware,
            timeout: timeout,
            byteBufferAllocator: byteBufferAllocator,
            options: options
        )
    }


    /// custom endpoints for regions
    static var serviceEndpoints: [String: String] {[
        "us-gov-east-1": "cloudformation.us-gov-east-1.amazonaws.com",
        "us-gov-west-1": "cloudformation.us-gov-west-1.amazonaws.com"
    ]}


    /// FIPS and dualstack endpoints
    static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
        [.fips]: .init(endpoints: [
            "us-east-1": "cloudformation-fips.us-east-1.amazonaws.com",
            "us-east-2": "cloudformation-fips.us-east-2.amazonaws.com",
            "us-gov-east-1": "cloudformation.us-gov-east-1.amazonaws.com",
            "us-gov-west-1": "cloudformation.us-gov-west-1.amazonaws.com",
            "us-west-1": "cloudformation-fips.us-west-1.amazonaws.com",
            "us-west-2": "cloudformation-fips.us-west-2.amazonaws.com"
        ])
    ]}

    // MARK: API Calls

    /// Activate trusted access with Organizations. With trusted access between StackSets and Organizations activated, the management account has permissions to create and manage StackSets for your organization.
    @Sendable
    @inlinable
    public func activateOrganizationsAccess(_ input: ActivateOrganizationsAccessInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ActivateOrganizationsAccessOutput {
        try await self.client.execute(
            operation: "ActivateOrganizationsAccess", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Activate trusted access with Organizations. With trusted access between StackSets and Organizations activated, the management account has permissions to create and manage StackSets for your organization.
    ///
    /// Parameters:
    ///   - logger: Logger use during operation
    @inlinable
    public func activateOrganizationsAccess(
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ActivateOrganizationsAccessOutput {
        let input = ActivateOrganizationsAccessInput(
        )
        return try await self.activateOrganizationsAccess(input, logger: logger)
    }

    /// Activates a public third-party extension, such as a resource or module, to make it available for use in stack templates in your current account and Region. It can also create CloudFormation Hooks, which allow you to evaluate resource configurations before CloudFormation provisions them. Hooks integrate with both CloudFormation and Cloud Control API operations. After you activate an extension, you can use SetTypeConfiguration to set specific properties for the extension. To see which extensions have been activated, use ListTypes. To see configuration details for an extension, use DescribeType. For more information, see Activate a third-party public extension in your account in the CloudFormation User Guide. For information about creating Hooks, see the CloudFormation Hooks User Guide.
    @Sendable
    @inlinable
    public func activateType(_ input: ActivateTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ActivateTypeOutput {
        try await self.client.execute(
            operation: "ActivateType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Activates a public third-party extension, such as a resource or module, to make it available for use in stack templates in your current account and Region. It can also create CloudFormation Hooks, which allow you to evaluate resource configurations before CloudFormation provisions them. Hooks integrate with both CloudFormation and Cloud Control API operations. After you activate an extension, you can use SetTypeConfiguration to set specific properties for the extension. To see which extensions have been activated, use ListTypes. To see configuration details for an extension, use DescribeType. For more information, see Activate a third-party public extension in your account in the CloudFormation User Guide. For information about creating Hooks, see the CloudFormation Hooks User Guide.
    ///
    /// Parameters:
    ///   - autoUpdate: Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated. The default is true.
    ///   - executionRoleArn: The name of the IAM execution role to use to activate the extension.
    ///   - loggingConfig: Contains logging configuration information for an extension.
    ///   - majorVersion: The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected. You can specify MajorVersion or VersionBump, but not both.
    ///   - publicTypeArn: The Amazon Resource Name (ARN) of the public extension. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
    ///   - publisherId: The ID of the extension publisher. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
    ///   - type: The extension type. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
    ///   - typeName: The name of the extension. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
    ///   - typeNameAlias: An alias to assign to the public extension in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console. An extension alias must be unique within a given account and Region. You can activate the same public resource multiple times in the same account and Region, using different type name aliases.
    ///   - versionBump: Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdate.    MAJOR: CloudFormation updates the extension to the newest major version, if one is available.    MINOR: CloudFormation updates the extension to the newest minor version, if one is available.
    ///   - logger: Logger use during operation
    @inlinable
    public func activateType(
        autoUpdate: Bool? = nil,
        executionRoleArn: String? = nil,
        loggingConfig: LoggingConfig? = nil,
        majorVersion: Int64? = nil,
        publicTypeArn: String? = nil,
        publisherId: String? = nil,
        type: ThirdPartyType? = nil,
        typeName: String? = nil,
        typeNameAlias: String? = nil,
        versionBump: VersionBump? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ActivateTypeOutput {
        let input = ActivateTypeInput(
            autoUpdate: autoUpdate, 
            executionRoleArn: executionRoleArn, 
            loggingConfig: loggingConfig, 
            majorVersion: majorVersion, 
            publicTypeArn: publicTypeArn, 
            publisherId: publisherId, 
            type: type, 
            typeName: typeName, 
            typeNameAlias: typeNameAlias, 
            versionBump: versionBump
        )
        return try await self.activateType(input, logger: logger)
    }

    /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation registry in your current account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func batchDescribeTypeConfigurations(_ input: BatchDescribeTypeConfigurationsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> BatchDescribeTypeConfigurationsOutput {
        try await self.client.execute(
            operation: "BatchDescribeTypeConfigurations", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation registry in your current account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - typeConfigurationIdentifiers: The list of identifiers for the desired extension configurations.
    ///   - logger: Logger use during operation
    @inlinable
    public func batchDescribeTypeConfigurations(
        typeConfigurationIdentifiers: [TypeConfigurationIdentifier]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> BatchDescribeTypeConfigurationsOutput {
        let input = BatchDescribeTypeConfigurationsInput(
            typeConfigurationIdentifiers: typeConfigurationIdentifiers
        )
        return try await self.batchDescribeTypeConfigurations(input, logger: logger)
    }

    /// Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.  You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.
    @Sendable
    @inlinable
    public func cancelUpdateStack(_ input: CancelUpdateStackInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "CancelUpdateStack", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.  You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier for this CancelUpdateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to cancel an update on a stack with the same name. You might retry CancelUpdateStack requests to ensure that CloudFormation successfully received them.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request:  { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }   The name or the unique stack ID that's associated with the stack.
    ///   - logger: Logger use during operation
    @inlinable
    public func cancelUpdateStack(
        clientRequestToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = CancelUpdateStackInput(
            clientRequestToken: clientRequestToken, 
            stackName: stackName
        )
        return try await self.cancelUpdateStack(input, logger: logger)
    }

    /// Continues rolling back a stack from UPDATE_ROLLBACK_FAILED to UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state) and then try to update the stack again. A stack enters the UPDATE_ROLLBACK_FAILED state when CloudFormation can't roll back all changes after a failed stack update. For example, this might occur when a stack attempts to roll back to an old database that was deleted outside of CloudFormation. Because CloudFormation doesn't know the instance was deleted, it assumes the instance still exists and attempts to roll back to it, causing the update rollback to fail. For more information, see Continue rolling back an update in the CloudFormation User Guide. For information for troubleshooting a failed update rollback, see Update rollback failed.
    @Sendable
    @inlinable
    public func continueUpdateRollback(_ input: ContinueUpdateRollbackInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ContinueUpdateRollbackOutput {
        try await self.client.execute(
            operation: "ContinueUpdateRollback", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Continues rolling back a stack from UPDATE_ROLLBACK_FAILED to UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state) and then try to update the stack again. A stack enters the UPDATE_ROLLBACK_FAILED state when CloudFormation can't roll back all changes after a failed stack update. For example, this might occur when a stack attempts to roll back to an old database that was deleted outside of CloudFormation. Because CloudFormation doesn't know the instance was deleted, it assumes the instance still exists and attempts to roll back to it, causing the update rollback to fail. For more information, see Continue rolling back an update in the CloudFormation User Guide. For information for troubleshooting a failed update rollback, see Update rollback failed.
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier for this ContinueUpdateRollback request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to continue the rollback to a stack with the same name. You might retry ContinueUpdateRollback requests to ensure that CloudFormation successfully received them.
    ///   - resourcesToSkip: A list of the logical IDs of the resources that CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the UPDATE_FAILED state because a rollback failed. You can't specify resources that are in the UPDATE_FAILED state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.  Specify this property to skip rolling back resources that CloudFormation can't successfully roll back. We recommend that you  troubleshoot resources before skipping them. CloudFormation sets the status of the specified resources to UPDATE_COMPLETE and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable.  Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources. To skip resources that are part of nested stacks, use the following format: NestedStackName.ResourceLogicalID. If you want to specify the logical ID of a stack resource (Type: AWS::CloudFormation::Stack) in the ResourcesToSkip list, then its corresponding embedded stack must be in one of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED.  Don't confuse a child stack's name with its corresponding logical ID defined in the parent stack. For an example of a continue update rollback operation with nested stacks, see Continue rolling back from failed nested stack updates.
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to roll back the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least permission. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
    ///   - stackName: The name or the unique ID of the stack that you want to continue rolling back.  Don't specify the name of a nested stack (a stack that was created by using the AWS::CloudFormation::Stack resource). Instead, use this operation on the parent stack (the stack that contains the AWS::CloudFormation::Stack resource).
    ///   - logger: Logger use during operation
    @inlinable
    public func continueUpdateRollback(
        clientRequestToken: String? = nil,
        resourcesToSkip: [String]? = nil,
        roleARN: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ContinueUpdateRollbackOutput {
        let input = ContinueUpdateRollbackInput(
            clientRequestToken: clientRequestToken, 
            resourcesToSkip: resourcesToSkip, 
            roleARN: roleARN, 
            stackName: stackName
        )
        return try await self.continueUpdateRollback(input, logger: logger)
    }

    /// Creates a list of changes that will be applied to a stack so that you can review the changes before executing them. You can create a change set for a stack that doesn't exist or an existing stack. If you create a change set for a stack that doesn't exist, the change set shows all of the resources that CloudFormation will create. If you create a change set for an existing stack, CloudFormation compares the stack's information with the information that you submit in the change set and lists the differences. Use change sets to understand which resources CloudFormation will create or change, and how it will change resources in an existing stack, before you create or update a stack. To create a change set for a stack that doesn't exist, for the ChangeSetType parameter, specify CREATE. To create a change set for an existing stack, specify UPDATE for the ChangeSetType parameter. To create a change set for an import operation, specify IMPORT for the ChangeSetType parameter. After the CreateChangeSet call successfully completes, CloudFormation starts creating the change set. To check the status of the change set or to review it, use the DescribeChangeSet action. When you are satisfied with the changes the change set will make, execute the change set by using the ExecuteChangeSet action. CloudFormation doesn't make changes until you execute the change set. To create a change set for the entire stack hierarchy, set IncludeNestedStacks to True.
    @Sendable
    @inlinable
    public func createChangeSet(_ input: CreateChangeSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateChangeSetOutput {
        try await self.client.execute(
            operation: "CreateChangeSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a list of changes that will be applied to a stack so that you can review the changes before executing them. You can create a change set for a stack that doesn't exist or an existing stack. If you create a change set for a stack that doesn't exist, the change set shows all of the resources that CloudFormation will create. If you create a change set for an existing stack, CloudFormation compares the stack's information with the information that you submit in the change set and lists the differences. Use change sets to understand which resources CloudFormation will create or change, and how it will change resources in an existing stack, before you create or update a stack. To create a change set for a stack that doesn't exist, for the ChangeSetType parameter, specify CREATE. To create a change set for an existing stack, specify UPDATE for the ChangeSetType parameter. To create a change set for an import operation, specify IMPORT for the ChangeSetType parameter. After the CreateChangeSet call successfully completes, CloudFormation starts creating the change set. To check the status of the change set or to review it, use the DescribeChangeSet action. When you are satisfied with the changes the change set will make, execute the change set by using the ExecuteChangeSet action. CloudFormation doesn't make changes until you execute the change set. To create a change set for the entire stack hierarchy, set IncludeNestedStacks to True.
    ///
    /// Parameters:
    ///   - capabilities: In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.     AWS::IAM::AccessKey      AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy      AWS::IAM::Policy      AWS::IAM::Role      AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.  This capacity doesn't apply to creating change sets, and specifying it when creating change sets has no effect. If you want to create a stack from a stack template that contains macros and nested stacks, you must create or update the stack directly from the template using the CreateStack or UpdateStack action, and specifying this capability.  For more information about macros, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - changeSetName: The name of the change set. The name must be unique among all change sets that are associated with the specified stack. A change set name can contain only alphanumeric, case sensitive characters, and hyphens. It must start with an alphabetical character and can't exceed 128 characters.
    ///   - changeSetType: The type of change set operation. To create a change set for a new stack, specify CREATE. To create a change set for an existing stack, specify UPDATE. To create a change set for an import operation, specify IMPORT. If you create a change set for a new stack, CloudFormation creates a stack with a unique stack ID, but no template or resources. The stack will be in the REVIEW_IN_PROGRESS state until you execute the change set. By default, CloudFormation specifies UPDATE. You can't use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
    ///   - clientToken: A unique identifier for this CreateChangeSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another change set with the same name. You might retry CreateChangeSet requests to ensure that CloudFormation successfully received them.
    ///   - description: A description to help you identify this change set.
    ///   - importExistingResources: Indicates if the change set auto-imports resources that already exist. For more information, see Import Amazon Web Services resources into a CloudFormation stack automatically in the CloudFormation User Guide.  This parameter can only import resources that have custom names in templates. For more information, see name type in the CloudFormation User Guide. To import resources that do not accept custom names, such as EC2 instances, use the ResourcesToImport parameter instead.
    ///   - includeNestedStacks: Creates a change set for the all nested stacks specified in the template. The default behavior of this action is set to False. To include nested sets in a change set, specify True.
    ///   - notificationARNs: The Amazon Resource Names (ARNs) of Amazon SNS topics that CloudFormation associates with the stack. To remove all associated notification topics, specify an empty list.
    ///   - onStackFailure: Determines what action will be taken if stack creation fails. If this parameter is specified, the DisableRollback parameter to the ExecuteChangeSet API operation must not be specified. This must be one of these values:    DELETE - Deletes the change set if the stack creation fails. This is only valid when the ChangeSetType parameter is set to CREATE. If the deletion of the stack fails, the status of the stack is DELETE_FAILED.    DO_NOTHING - if the stack creation fails, do nothing. This is equivalent to specifying true for the DisableRollback parameter to the ExecuteChangeSet API operation.    ROLLBACK - if the stack creation fails, roll back the stack. This is equivalent to specifying false for the DisableRollback parameter to the ExecuteChangeSet API operation.   For nested stacks, when the OnStackFailure parameter is set to DELETE for the change set for the parent stack, any failure in a child stack will cause the parent stack creation to fail and all stacks to be deleted.
    ///   - parameters: A list of Parameter structures that specify input parameters for the change set. For more information, see the Parameter data type.
    ///   - resourcesToImport: The resources to import into your stack.
    ///   - resourceTypes: The template resource types that you have permissions to work with if you execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. If the list of resource types doesn't include a resource type that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for condition keys in IAM policies for CloudFormation. For more information, see Control access with Identity and Access Management in the CloudFormation User Guide.  Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes when executing the change set. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least permission. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that is generated from your user credentials.
    ///   - rollbackConfiguration: The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
    ///   - stackName: The name or the unique ID of the stack for which you are creating a change set. CloudFormation generates the change set by comparing this stack's information with the information that you submit, such as a modified template or different parameter input values.
    ///   - tags: Key-value pairs to associate with this stack. CloudFormation also propagates these tags to resources in the stack. You can specify a maximum of 50 tags.
    ///   - templateBody: A structure that contains the body of the revised template, with a minimum length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates the change set by comparing this template with the template of the stack that you specified. Conditional: You must specify only TemplateBody or TemplateURL.
    ///   - templateURL: The URL of the file that contains the revised template. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. CloudFormation generates the change set by comparing this template with the stack that you specified. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must specify only TemplateBody or TemplateURL.
    ///   - usePreviousTemplate: Whether to reuse the template that's associated with the stack to create the change set.
    ///   - logger: Logger use during operation
    @inlinable
    public func createChangeSet(
        capabilities: [Capability]? = nil,
        changeSetName: String? = nil,
        changeSetType: ChangeSetType? = nil,
        clientToken: String? = nil,
        description: String? = nil,
        importExistingResources: Bool? = nil,
        includeNestedStacks: Bool? = nil,
        notificationARNs: [String]? = nil,
        onStackFailure: OnStackFailure? = nil,
        parameters: [Parameter]? = nil,
        resourcesToImport: [ResourceToImport]? = nil,
        resourceTypes: [String]? = nil,
        roleARN: String? = nil,
        rollbackConfiguration: RollbackConfiguration? = nil,
        stackName: String? = nil,
        tags: [Tag]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        usePreviousTemplate: Bool? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateChangeSetOutput {
        let input = CreateChangeSetInput(
            capabilities: capabilities, 
            changeSetName: changeSetName, 
            changeSetType: changeSetType, 
            clientToken: clientToken, 
            description: description, 
            importExistingResources: importExistingResources, 
            includeNestedStacks: includeNestedStacks, 
            notificationARNs: notificationARNs, 
            onStackFailure: onStackFailure, 
            parameters: parameters, 
            resourcesToImport: resourcesToImport, 
            resourceTypes: resourceTypes, 
            roleARN: roleARN, 
            rollbackConfiguration: rollbackConfiguration, 
            stackName: stackName, 
            tags: tags, 
            templateBody: templateBody, 
            templateURL: templateURL, 
            usePreviousTemplate: usePreviousTemplate
        )
        return try await self.createChangeSet(input, logger: logger)
    }

    /// Creates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action.
    @Sendable
    @inlinable
    public func createGeneratedTemplate(_ input: CreateGeneratedTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateGeneratedTemplateOutput {
        try await self.client.execute(
            operation: "CreateGeneratedTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action.
    ///
    /// Parameters:
    ///   - generatedTemplateName: The name assigned to the generated template.
    ///   - resources: An optional list of resources to be included in the generated template. If no resources are specified,the template will be created without any resources. Resources can be added to the template using the UpdateGeneratedTemplate API action.
    ///   - stackName: An optional name or ARN of a stack to use as the base stack for the generated template.
    ///   - templateConfiguration: The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.
    ///   - logger: Logger use during operation
    @inlinable
    public func createGeneratedTemplate(
        generatedTemplateName: String? = nil,
        resources: [ResourceDefinition]? = nil,
        stackName: String? = nil,
        templateConfiguration: TemplateConfiguration? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateGeneratedTemplateOutput {
        let input = CreateGeneratedTemplateInput(
            generatedTemplateName: generatedTemplateName, 
            resources: resources, 
            stackName: stackName, 
            templateConfiguration: templateConfiguration
        )
        return try await self.createGeneratedTemplate(input, logger: logger)
    }

    /// Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack through the DescribeStacks operation. For more information about creating a stack and monitoring stack progress, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func createStack(_ input: CreateStackInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateStackOutput {
        try await self.client.execute(
            operation: "CreateStack", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack through the DescribeStacks operation. For more information about creating a stack and monitoring stack progress, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - capabilities: In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation. If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability.  You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.  For more information, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - clientRequestToken: A unique identifier for this CreateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create a stack with the same name. You might retry CreateStack requests to ensure that CloudFormation successfully received them. All events initiated by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
    ///   - disableRollback: Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure, but not both. Default: false
    ///   - enableTerminationProtection: Whether to enable termination protection on the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect CloudFormation stacks from being deleted in the CloudFormation User Guide. Termination protection is deactivated on stacks by default. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
    ///   - notificationARNs: The Amazon SNS topic ARNs to publish stack related events. You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line Interface (CLI).
    ///   - onFailure: Determines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback, but not both.  Although the default setting is ROLLBACK, there is one exception. This exception occurs when a StackSet attempts to deploy a stack instance and the stack instance fails to create successfully. In this case, the CreateStack call overrides the default setting and sets the value of OnFailure to DELETE.  Default: ROLLBACK
    ///   - parameters: A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.
    ///   - resourceTypes: The template resource types that you have permissions to work with for this create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. Use the following syntax to describe template resource types: AWS::* (for all Amazon Web Services resources), Custom::* (for all custom resources), Custom::logical_ID (for a specific custom resource), AWS::service_name::* (for all resources of a particular Amazon Web Services service), and AWS::service_name::resource_logical_ID (for a specific Amazon Web Services resource). If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Control access with Identity and Access Management.  Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - retainExceptOnCreate: When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to create the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
    ///   - rollbackConfiguration: The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
    ///   - stackName: The name that's associated with the stack. The name must be unique in the Region in which you are creating the stack.  A stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetical character and can't be longer than 128 characters.
    ///   - stackPolicyBody: Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
    ///   - stackPolicyURL: Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
    ///   - tags: Key-value pairs to associate with this stack. CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 50 tags can be specified.
    ///   - templateBody: Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either TemplateBody or TemplateURL, but not both.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
    ///   - timeoutInMinutes: The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.
    ///   - logger: Logger use during operation
    @inlinable
    public func createStack(
        capabilities: [Capability]? = nil,
        clientRequestToken: String? = nil,
        disableRollback: Bool? = nil,
        enableTerminationProtection: Bool? = nil,
        notificationARNs: [String]? = nil,
        onFailure: OnFailure? = nil,
        parameters: [Parameter]? = nil,
        resourceTypes: [String]? = nil,
        retainExceptOnCreate: Bool? = nil,
        roleARN: String? = nil,
        rollbackConfiguration: RollbackConfiguration? = nil,
        stackName: String? = nil,
        stackPolicyBody: String? = nil,
        stackPolicyURL: String? = nil,
        tags: [Tag]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        timeoutInMinutes: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateStackOutput {
        let input = CreateStackInput(
            capabilities: capabilities, 
            clientRequestToken: clientRequestToken, 
            disableRollback: disableRollback, 
            enableTerminationProtection: enableTerminationProtection, 
            notificationARNs: notificationARNs, 
            onFailure: onFailure, 
            parameters: parameters, 
            resourceTypes: resourceTypes, 
            retainExceptOnCreate: retainExceptOnCreate, 
            roleARN: roleARN, 
            rollbackConfiguration: rollbackConfiguration, 
            stackName: stackName, 
            stackPolicyBody: stackPolicyBody, 
            stackPolicyURL: stackPolicyURL, 
            tags: tags, 
            templateBody: templateBody, 
            templateURL: templateURL, 
            timeoutInMinutes: timeoutInMinutes
        )
        return try await self.createStack(input, logger: logger)
    }

    /// Creates stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets, and you must specify at least one value for Regions.  The maximum number of organizational unit (OUs) supported by a CreateStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    @Sendable
    @inlinable
    public func createStackInstances(_ input: CreateStackInstancesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateStackInstancesOutput {
        try await self.client.execute(
            operation: "CreateStackInstances", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets, and you must specify at least one value for Regions.  The maximum number of organizational unit (OUs) supported by a CreateStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    ///
    /// Parameters:
    ///   - accounts: [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts that you want to create stack instances in the specified Region(s) for. You can specify Accounts or DeploymentTargets, but not both.
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - deploymentTargets: [Service-managed permissions] The Organizations accounts in which to create stack instances in the specified Amazon Web Services Regions. You can specify Accounts or DeploymentTargets, but not both.
    ///   - operationId: The unique identifier for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
    ///   - operationPreferences: Preferences for how CloudFormation performs this StackSet operation.
    ///   - parameterOverrides: A list of StackSet parameters whose values you want to override in the selected stack instances. Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance operations:   To override the current value for a parameter, include the parameter and specify its value.   To leave an overridden parameter set to its present value, include the parameter and specify UsePreviousValue as true. (You can't specify both a value and set UsePreviousValue to true.)   To set an overridden parameter back to the value specified in the StackSet, specify a parameter list but don't include the parameter in the list.   To leave all parameters set to their present values, don't specify this property at all.   During StackSet updates, any parameter values overridden for a stack instance aren't updated, but retain their overridden value. You can only override the parameter values that are specified in the StackSet; to add or delete a parameter itself, use UpdateStackSet to update the StackSet template.
    ///   - regions: The names of one or more Amazon Web Services Regions where you want to create stack instances using the specified Amazon Web Services accounts.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to create stack instances from.
    ///   - logger: Logger use during operation
    @inlinable
    public func createStackInstances(
        accounts: [String]? = nil,
        callAs: CallAs? = nil,
        deploymentTargets: DeploymentTargets? = nil,
        operationId: String? = CreateStackInstancesInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        parameterOverrides: [Parameter]? = nil,
        regions: [String]? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateStackInstancesOutput {
        let input = CreateStackInstancesInput(
            accounts: accounts, 
            callAs: callAs, 
            deploymentTargets: deploymentTargets, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            parameterOverrides: parameterOverrides, 
            regions: regions, 
            stackSetName: stackSetName
        )
        return try await self.createStackInstances(input, logger: logger)
    }

    /// Creates a refactor across multiple stacks, with the list of stacks and resources that are affected.
    @Sendable
    @inlinable
    public func createStackRefactor(_ input: CreateStackRefactorInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateStackRefactorOutput {
        try await self.client.execute(
            operation: "CreateStackRefactor", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a refactor across multiple stacks, with the list of stacks and resources that are affected.
    ///
    /// Parameters:
    ///   - description: A description to help you identify the stack refactor.
    ///   - enableStackCreation: Determines if a new stack is created with the refactor.
    ///   - resourceMappings: The mappings for the stack resource Source and stack resource Destination.
    ///   - stackDefinitions: The stacks being refactored.
    ///   - logger: Logger use during operation
    @inlinable
    public func createStackRefactor(
        description: String? = nil,
        enableStackCreation: Bool? = nil,
        resourceMappings: [ResourceMapping]? = nil,
        stackDefinitions: [StackDefinition]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateStackRefactorOutput {
        let input = CreateStackRefactorInput(
            description: description, 
            enableStackCreation: enableStackCreation, 
            resourceMappings: resourceMappings, 
            stackDefinitions: stackDefinitions
        )
        return try await self.createStackRefactor(input, logger: logger)
    }

    /// Creates a StackSet.
    @Sendable
    @inlinable
    public func createStackSet(_ input: CreateStackSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateStackSetOutput {
        try await self.client.execute(
            operation: "CreateStackSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a StackSet.
    ///
    /// Parameters:
    ///   - administrationRoleARN: The Amazon Resource Name (ARN) of the IAM role to use to create this StackSet. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide. Valid only if the permissions model is SELF_MANAGED.
    ///   - autoDeployment: Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide. Required if the permissions model is SERVICE_MANAGED. (Not used with self-managed permissions.)
    ///   - callAs: Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   To create a StackSet with service-managed permissions while signed in to the management account, specify SELF.   To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.   StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators. Valid only if the permissions model is SERVICE_MANAGED.
    ///   - capabilities: In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.  StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
    ///   - clientRequestToken: A unique identifier for this CreateStackSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another StackSet with the same name. You might retry CreateStackSet requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically.
    ///   - description: A description of the StackSet. You can use the description to identify the StackSet's purpose or other important information.
    ///   - executionRoleName: The name of the IAM execution role to use to create the StackSet. If you do not specify an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the StackSet operation. Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets. Valid only if the permissions model is SELF_MANAGED.
    ///   - managedExecution: Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
    ///   - parameters: The input parameters for the StackSet template.
    ///   - permissionModel: Describes how the IAM roles required for StackSet operations are created. By default, SELF-MANAGED is specified.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
    ///   - stackId: The stack ID you are importing into a new StackSet. Specify the Amazon Resource Name (ARN) of the stack.
    ///   - stackSetName: The name to associate with the StackSet. The name must be unique in the Region where you create your StackSet.  A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters.
    ///   - tags: The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags can be specified. If you specify tags as part of a CreateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire CreateStackSet action fails with an access denied error, and the StackSet is not created.
    ///   - templateBody: The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. S3 static website URLs are not supported. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
    ///   - logger: Logger use during operation
    @inlinable
    public func createStackSet(
        administrationRoleARN: String? = nil,
        autoDeployment: AutoDeployment? = nil,
        callAs: CallAs? = nil,
        capabilities: [Capability]? = nil,
        clientRequestToken: String? = CreateStackSetInput.idempotencyToken(),
        description: String? = nil,
        executionRoleName: String? = nil,
        managedExecution: ManagedExecution? = nil,
        parameters: [Parameter]? = nil,
        permissionModel: PermissionModels? = nil,
        stackId: String? = nil,
        stackSetName: String? = nil,
        tags: [Tag]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> CreateStackSetOutput {
        let input = CreateStackSetInput(
            administrationRoleARN: administrationRoleARN, 
            autoDeployment: autoDeployment, 
            callAs: callAs, 
            capabilities: capabilities, 
            clientRequestToken: clientRequestToken, 
            description: description, 
            executionRoleName: executionRoleName, 
            managedExecution: managedExecution, 
            parameters: parameters, 
            permissionModel: permissionModel, 
            stackId: stackId, 
            stackSetName: stackSetName, 
            tags: tags, 
            templateBody: templateBody, 
            templateURL: templateURL
        )
        return try await self.createStackSet(input, logger: logger)
    }

    /// Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.
    @Sendable
    @inlinable
    public func deactivateOrganizationsAccess(_ input: DeactivateOrganizationsAccessInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeactivateOrganizationsAccessOutput {
        try await self.client.execute(
            operation: "DeactivateOrganizationsAccess", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.
    ///
    /// Parameters:
    ///   - logger: Logger use during operation
    @inlinable
    public func deactivateOrganizationsAccess(
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeactivateOrganizationsAccessOutput {
        let input = DeactivateOrganizationsAccessInput(
        )
        return try await self.deactivateOrganizationsAccess(input, logger: logger)
    }

    /// Deactivates a public third-party extension, such as a resource or module, or a CloudFormation Hook when you no longer use it. Deactivating an extension deletes the configuration details that are associated with it. To temporarily disable a CloudFormation Hook instead, you can use SetTypeConfiguration. Once deactivated, an extension can't be used in any CloudFormation operation. This includes stack update operations where the stack template includes the extension, even if no updates are being made to the extension. In addition, deactivated extensions aren't automatically updated if a new version of the extension is released. To see which extensions are currently activated, use ListTypes.
    @Sendable
    @inlinable
    public func deactivateType(_ input: DeactivateTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeactivateTypeOutput {
        try await self.client.execute(
            operation: "DeactivateType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deactivates a public third-party extension, such as a resource or module, or a CloudFormation Hook when you no longer use it. Deactivating an extension deletes the configuration details that are associated with it. To temporarily disable a CloudFormation Hook instead, you can use SetTypeConfiguration. Once deactivated, an extension can't be used in any CloudFormation operation. This includes stack update operations where the stack template includes the extension, even if no updates are being made to the extension. In addition, deactivated extensions aren't automatically updated if a new version of the extension is released. To see which extensions are currently activated, use ListTypes.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) for the extension in this account and Region. Conditional: You must specify either Arn, or TypeName and Type.
    ///   - type: The extension type. Conditional: You must specify either Arn, or TypeName and Type.
    ///   - typeName: The type name of the extension in this account and Region. If you specified a type name alias when enabling the extension, use the type name alias. Conditional: You must specify either Arn, or TypeName and Type.
    ///   - logger: Logger use during operation
    @inlinable
    public func deactivateType(
        arn: String? = nil,
        type: ThirdPartyType? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeactivateTypeOutput {
        let input = DeactivateTypeInput(
            arn: arn, 
            type: type, 
            typeName: typeName
        )
        return try await self.deactivateType(input, logger: logger)
    }

    /// Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set. If the call successfully completes, CloudFormation successfully deleted the change set. If IncludeNestedStacks specifies True during the creation of the nested change set, then DeleteChangeSet will delete all change sets that belong to the stacks hierarchy and will also delete all change sets for nested stacks with the status of REVIEW_IN_PROGRESS.
    @Sendable
    @inlinable
    public func deleteChangeSet(_ input: DeleteChangeSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeleteChangeSetOutput {
        try await self.client.execute(
            operation: "DeleteChangeSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set. If the call successfully completes, CloudFormation successfully deleted the change set. If IncludeNestedStacks specifies True during the creation of the nested change set, then DeleteChangeSet will delete all change sets that belong to the stacks hierarchy and will also delete all change sets for nested stacks with the status of REVIEW_IN_PROGRESS.
    ///
    /// Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of the change set that you want to delete.
    ///   - stackName: If you specified the name of a change set to delete, specify the stack name or Amazon Resource Name (ARN) that's associated with it.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteChangeSet(
        changeSetName: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeleteChangeSetOutput {
        let input = DeleteChangeSetInput(
            changeSetName: changeSetName, 
            stackName: stackName
        )
        return try await self.deleteChangeSet(input, logger: logger)
    }

    /// Deleted a generated template.
    @Sendable
    @inlinable
    public func deleteGeneratedTemplate(_ input: DeleteGeneratedTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteGeneratedTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deleted a generated template.
    ///
    /// Parameters:
    ///   - generatedTemplateName: The name or Amazon Resource Name (ARN) of a generated template.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteGeneratedTemplate(
        generatedTemplateName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteGeneratedTemplateInput(
            generatedTemplateName: generatedTemplateName
        )
        return try await self.deleteGeneratedTemplate(input, logger: logger)
    }

    /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks don't show up in the DescribeStacks operation if the deletion has been completed successfully. For more information about deleting a stack, see Delete a stack from the CloudFormation console in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func deleteStack(_ input: DeleteStackInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteStack", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks don't show up in the DescribeStacks operation if the deletion has been completed successfully. For more information about deleting a stack, see Delete a stack from the CloudFormation console in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier for this DeleteStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to delete a stack with the same name. You might retry DeleteStack requests to ensure that CloudFormation successfully received them. All events initiated by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
    ///   - deletionMode: Specifies the deletion mode for the stack. Possible values are:    STANDARD - Use the standard behavior. Specifying this value is the same as not specifying this parameter.    FORCE_DELETE_STACK - Delete the stack if it's stuck in a DELETE_FAILED state due to resource deletion failure.
    ///   - retainResources: For stacks in the DELETE_FAILED state, a list of resource logical IDs that are associated with the resources you want to retain. During deletion, CloudFormation deletes the stack but doesn't delete the retained resources. Retaining resources is useful when you can't delete a resource, such as a non-empty S3 bucket, but you want to delete the stack.
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to delete the stack. CloudFormation uses the role's credentials to make calls on your behalf. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
    ///   - stackName: The name or the unique stack ID that's associated with the stack.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteStack(
        clientRequestToken: String? = nil,
        deletionMode: DeletionMode? = nil,
        retainResources: [String]? = nil,
        roleARN: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteStackInput(
            clientRequestToken: clientRequestToken, 
            deletionMode: deletionMode, 
            retainResources: retainResources, 
            roleARN: roleARN, 
            stackName: stackName
        )
        return try await self.deleteStack(input, logger: logger)
    }

    /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services Regions.  The maximum number of organizational unit (OUs) supported by a DeleteStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    @Sendable
    @inlinable
    public func deleteStackInstances(_ input: DeleteStackInstancesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeleteStackInstancesOutput {
        try await self.client.execute(
            operation: "DeleteStackInstances", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services Regions.  The maximum number of organizational unit (OUs) supported by a DeleteStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    ///
    /// Parameters:
    ///   - accounts: [Self-managed permissions] The account IDs of the Amazon Web Services accounts that you want to delete stack instances for. You can specify Accounts or DeploymentTargets, but not both.
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - deploymentTargets: [Service-managed permissions] The Organizations accounts from which to delete stack instances. You can specify Accounts or DeploymentTargets, but not both.
    ///   - operationId: The unique identifier for this StackSet operation. If you don't specify an operation ID, the SDK generates one automatically. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You can retry StackSet operation requests to ensure that CloudFormation successfully received them. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
    ///   - operationPreferences: Preferences for how CloudFormation performs this StackSet operation.
    ///   - regions: The Amazon Web Services Regions where you want to delete StackSet instances.
    ///   - retainStacks: Removes the stack instances from the specified StackSet, but doesn't delete the stacks. You can't reassociate a retained stack or add an existing, saved stack to a new stack set. For more information, see StackSet operation options.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to delete stack instances for.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteStackInstances(
        accounts: [String]? = nil,
        callAs: CallAs? = nil,
        deploymentTargets: DeploymentTargets? = nil,
        operationId: String? = DeleteStackInstancesInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        regions: [String]? = nil,
        retainStacks: Bool? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeleteStackInstancesOutput {
        let input = DeleteStackInstancesInput(
            accounts: accounts, 
            callAs: callAs, 
            deploymentTargets: deploymentTargets, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            regions: regions, 
            retainStacks: retainStacks, 
            stackSetName: stackSetName
        )
        return try await self.deleteStackInstances(input, logger: logger)
    }

    /// Deletes a StackSet. Before you can delete a StackSet, all its member stack instances must be deleted. For more information about how to complete this, see DeleteStackInstances.
    @Sendable
    @inlinable
    public func deleteStackSet(_ input: DeleteStackSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeleteStackSetOutput {
        try await self.client.execute(
            operation: "DeleteStackSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes a StackSet. Before you can delete a StackSet, all its member stack instances must be deleted. For more information about how to complete this, see DeleteStackInstances.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - stackSetName: The name or unique ID of the StackSet that you're deleting. You can obtain this value by running ListStackSets.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteStackSet(
        callAs: CallAs? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeleteStackSetOutput {
        let input = DeleteStackSetInput(
            callAs: callAs, 
            stackSetName: stackSetName
        )
        return try await self.deleteStackSet(input, logger: logger)
    }

    /// Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or extension versions cannot be used in CloudFormation operations. To deregister an entire extension, you must individually deregister all active versions of that extension. If an extension has only a single active version, deregistering that version results in the extension itself being deregistered and marked as deprecated in the registry. You can't deregister the default version of an extension if there are other active version of that extension. If you do deregister the default version of an extension, the extension type itself is deregistered as well and marked as deprecated. To view the deprecation status of an extension or extension version, use DescribeType. For more information, see Remove third-party private extensions from your account in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func deregisterType(_ input: DeregisterTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DeregisterTypeOutput {
        try await self.client.execute(
            operation: "DeregisterType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or extension versions cannot be used in CloudFormation operations. To deregister an entire extension, you must individually deregister all active versions of that extension. If an extension has only a single active version, deregistering that version results in the extension itself being deregistered and marked as deprecated in the registry. You can't deregister the default version of an extension if there are other active version of that extension. If you do deregister the default version of an extension, the extension type itself is deregistered as well and marked as deprecated. To view the deprecation status of an extension or extension version, use DescribeType. For more information, see Remove third-party private extensions from your account in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - type: The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - versionId: The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.
    ///   - logger: Logger use during operation
    @inlinable
    public func deregisterType(
        arn: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        versionId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DeregisterTypeOutput {
        let input = DeregisterTypeInput(
            arn: arn, 
            type: type, 
            typeName: typeName, 
            versionId: versionId
        )
        return try await self.deregisterType(input, logger: logger)
    }

    /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks that you can create in your account. For more information about account limits, see Understand CloudFormation quotas in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func describeAccountLimits(_ input: DescribeAccountLimitsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeAccountLimitsOutput {
        try await self.client.execute(
            operation: "DescribeAccountLimits", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks that you can create in your account. For more information about account limits, see Understand CloudFormation quotas in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of limits that you want to retrieve.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeAccountLimits(
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeAccountLimitsOutput {
        let input = DescribeAccountLimitsInput(
            nextToken: nextToken
        )
        return try await self.describeAccountLimits(input, logger: logger)
    }

    /// Returns the inputs for the change set and a list of changes that CloudFormation will make if you execute the change set. For more information, see Update CloudFormation stacks using change sets in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func describeChangeSet(_ input: DescribeChangeSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeChangeSetOutput {
        try await self.client.execute(
            operation: "DescribeChangeSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the inputs for the change set and a list of changes that CloudFormation will make if you execute the change set. For more information, see Update CloudFormation stacks using change sets in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of the change set that you want to describe.
    ///   - includePropertyValues: If true, the returned changes include detailed changes in the property values.
    ///   - nextToken: A string (provided by the DescribeChangeSet response output) that identifies the next page of information that you want to retrieve.
    ///   - stackName: If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeChangeSet(
        changeSetName: String? = nil,
        includePropertyValues: Bool? = nil,
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeChangeSetOutput {
        let input = DescribeChangeSetInput(
            changeSetName: changeSetName, 
            includePropertyValues: includePropertyValues, 
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.describeChangeSet(input, logger: logger)
    }

    /// Returns hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set.
    @Sendable
    @inlinable
    public func describeChangeSetHooks(_ input: DescribeChangeSetHooksInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeChangeSetHooksOutput {
        try await self.client.execute(
            operation: "DescribeChangeSetHooks", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set.
    ///
    /// Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of the change set that you want to describe.
    ///   - logicalResourceId: If specified, lists only the Hooks related to the specified LogicalResourceId.
    ///   - nextToken: A string, provided by the DescribeChangeSetHooks response output, that identifies the next page of information that you want to retrieve.
    ///   - stackName: If you specified the name of a change set, specify the stack name or stack ID (ARN) of the change set you want to describe.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeChangeSetHooks(
        changeSetName: String? = nil,
        logicalResourceId: String? = nil,
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeChangeSetHooksOutput {
        let input = DescribeChangeSetHooksInput(
            changeSetName: changeSetName, 
            logicalResourceId: logicalResourceId, 
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.describeChangeSetHooks(input, logger: logger)
    }

    /// Describes a generated template. The output includes details about the progress of the creation of a generated template started by a CreateGeneratedTemplate API action or the update of a generated template started with an UpdateGeneratedTemplate API action.
    @Sendable
    @inlinable
    public func describeGeneratedTemplate(_ input: DescribeGeneratedTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeGeneratedTemplateOutput {
        try await self.client.execute(
            operation: "DescribeGeneratedTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Describes a generated template. The output includes details about the progress of the creation of a generated template started by a CreateGeneratedTemplate API action or the update of a generated template started with an UpdateGeneratedTemplate API action.
    ///
    /// Parameters:
    ///   - generatedTemplateName: The name or Amazon Resource Name (ARN) of a generated template.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeGeneratedTemplate(
        generatedTemplateName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeGeneratedTemplateOutput {
        let input = DescribeGeneratedTemplateInput(
            generatedTemplateName: generatedTemplateName
        )
        return try await self.describeGeneratedTemplate(input, logger: logger)
    }

    /// Retrieves information about the account's OrganizationAccess status. This API can be called either by the management account or the delegated administrator by using the CallAs parameter. This API can also be called without the CallAs parameter by the management account.
    @Sendable
    @inlinable
    public func describeOrganizationsAccess(_ input: DescribeOrganizationsAccessInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeOrganizationsAccessOutput {
        try await self.client.execute(
            operation: "DescribeOrganizationsAccess", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Retrieves information about the account's OrganizationAccess status. This API can be called either by the management account or the delegated administrator by using the CallAs parameter. This API can also be called without the CallAs parameter by the management account.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeOrganizationsAccess(
        callAs: CallAs? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeOrganizationsAccessOutput {
        let input = DescribeOrganizationsAccessInput(
            callAs: callAs
        )
        return try await self.describeOrganizationsAccess(input, logger: logger)
    }

    /// Returns information about a CloudFormation extension publisher. If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account. For more information about registering as a publisher, see:    RegisterPublisher     Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide
    @Sendable
    @inlinable
    public func describePublisher(_ input: DescribePublisherInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribePublisherOutput {
        try await self.client.execute(
            operation: "DescribePublisher", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns information about a CloudFormation extension publisher. If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account. For more information about registering as a publisher, see:    RegisterPublisher     Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide
    ///
    /// Parameters:
    ///   - publisherId: The ID of the extension publisher. If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.
    ///   - logger: Logger use during operation
    @inlinable
    public func describePublisher(
        publisherId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribePublisherOutput {
        let input = DescribePublisherInput(
            publisherId: publisherId
        )
        return try await self.describePublisher(input, logger: logger)
    }

    /// Describes details of a resource scan.
    @Sendable
    @inlinable
    public func describeResourceScan(_ input: DescribeResourceScanInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeResourceScanOutput {
        try await self.client.execute(
            operation: "DescribeResourceScan", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Describes details of a resource scan.
    ///
    /// Parameters:
    ///   - resourceScanId: The Amazon Resource Name (ARN) of the resource scan.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeResourceScan(
        resourceScanId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeResourceScanOutput {
        let input = DescribeResourceScanInput(
            resourceScanId: resourceScanId
        )
        return try await self.describeResourceScan(input, logger: logger)
    }

    /// Returns information about a stack drift detection operation. A stack drift detection operation detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackDrift to initiate a stack drift detection operation. DetectStackDrift returns a StackDriftDetectionId you can use to monitor the progress of the operation using DescribeStackDriftDetectionStatus. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.
    @Sendable
    @inlinable
    public func describeStackDriftDetectionStatus(_ input: DescribeStackDriftDetectionStatusInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackDriftDetectionStatusOutput {
        try await self.client.execute(
            operation: "DescribeStackDriftDetectionStatus", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns information about a stack drift detection operation. A stack drift detection operation detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackDrift to initiate a stack drift detection operation. DetectStackDrift returns a StackDriftDetectionId you can use to monitor the progress of the operation using DescribeStackDriftDetectionStatus. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.
    ///
    /// Parameters:
    ///   - stackDriftDetectionId: The ID of the drift detection results of this operation. CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results CloudFormation retains for any given stack, and for how long, may vary.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackDriftDetectionStatus(
        stackDriftDetectionId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackDriftDetectionStatusOutput {
        let input = DescribeStackDriftDetectionStatusInput(
            stackDriftDetectionId: stackDriftDetectionId
        )
        return try await self.describeStackDriftDetectionStatus(input, logger: logger)
    }

    /// Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide.  You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).
    @Sendable
    @inlinable
    public func describeStackEvents(_ input: DescribeStackEventsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackEventsOutput {
        try await self.client.execute(
            operation: "DescribeStackEvents", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide.  You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of events that you want to retrieve.
    ///   - stackName: The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackEvents(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackEventsOutput {
        let input = DescribeStackEventsInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.describeStackEvents(input, logger: logger)
    }

    /// Returns the stack instance that's associated with the specified StackSet, Amazon Web Services account, and Amazon Web Services Region. For a list of stack instances that are associated with a specific StackSet, use ListStackInstances.
    @Sendable
    @inlinable
    public func describeStackInstance(_ input: DescribeStackInstanceInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackInstanceOutput {
        try await self.client.execute(
            operation: "DescribeStackInstance", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the stack instance that's associated with the specified StackSet, Amazon Web Services account, and Amazon Web Services Region. For a list of stack instances that are associated with a specific StackSet, use ListStackInstances.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - stackInstanceAccount: The ID of an Amazon Web Services account that's associated with this stack instance.
    ///   - stackInstanceRegion: The name of a Region that's associated with this stack instance.
    ///   - stackSetName: The name or the unique stack ID of the StackSet that you want to get stack instance information for.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackInstance(
        callAs: CallAs? = nil,
        stackInstanceAccount: String? = nil,
        stackInstanceRegion: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackInstanceOutput {
        let input = DescribeStackInstanceInput(
            callAs: callAs, 
            stackInstanceAccount: stackInstanceAccount, 
            stackInstanceRegion: stackInstanceRegion, 
            stackSetName: stackSetName
        )
        return try await self.describeStackInstance(input, logger: logger)
    }

    /// Describes the stack refactor status.
    @Sendable
    @inlinable
    public func describeStackRefactor(_ input: DescribeStackRefactorInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackRefactorOutput {
        try await self.client.execute(
            operation: "DescribeStackRefactor", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Describes the stack refactor status.
    ///
    /// Parameters:
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackRefactor(
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackRefactorOutput {
        let input = DescribeStackRefactorInput(
            stackRefactorId: stackRefactorId
        )
        return try await self.describeStackRefactor(input, logger: logger)
    }

    /// Returns a description of the specified resource in the specified stack. For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.
    @Sendable
    @inlinable
    public func describeStackResource(_ input: DescribeStackResourceInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackResourceOutput {
        try await self.client.execute(
            operation: "DescribeStackResource", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns a description of the specified resource in the specified stack. For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.
    ///
    /// Parameters:
    ///   - logicalResourceId: The logical name of the resource as specified in the template.
    ///   - stackName: The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackResource(
        logicalResourceId: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackResourceOutput {
        let input = DescribeStackResourceInput(
            logicalResourceId: logicalResourceId, 
            stackName: stackName
        )
        return try await self.describeStackResource(input, logger: logger)
    }

    /// Returns drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where CloudFormation detects configuration drift. For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that haven't yet been checked for drift aren't included. Resources that don't currently support drift detection aren't checked, and so not included. For a list of resources that support drift detection, see Resource type support for imports and drift detection. Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all supported resources for a given stack.
    @Sendable
    @inlinable
    public func describeStackResourceDrifts(_ input: DescribeStackResourceDriftsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackResourceDriftsOutput {
        try await self.client.execute(
            operation: "DescribeStackResourceDrifts", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where CloudFormation detects configuration drift. For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that haven't yet been checked for drift aren't included. Resources that don't currently support drift detection aren't checked, and so not included. For a list of resources that support drift detection, see Resource type support for imports and drift detection. Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all supported resources for a given stack.
    ///
    /// Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: A string that identifies the next page of stack resource drift results.
    ///   - stackName: The name of the stack for which you want drift information.
    ///   - stackResourceDriftStatusFilters: The resource drift status values to use as filters for the resource drift results returned.    DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.    UNKNOWN: CloudFormation could not run drift detection for the resource.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackResourceDrifts(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        stackName: String? = nil,
        stackResourceDriftStatusFilters: [StackResourceDriftStatus]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackResourceDriftsOutput {
        let input = DescribeStackResourceDriftsInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            stackName: stackName, 
            stackResourceDriftStatusFilters: stackResourceDriftStatusFilters
        )
        return try await self.describeStackResourceDrifts(input, logger: logger)
    }

    /// Returns Amazon Web Services resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId is specified, the associated resources of the stack that the resource belongs to are returned.  Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources instead.  For deleted stacks, DescribeStackResources returns resource information for up to 90 days after the stack has been deleted. You must specify either StackName or PhysicalResourceId, but not both. In addition, you can specify LogicalResourceId to filter the returned result. For more information about resources, the LogicalResourceId and PhysicalResourceId, see the CloudFormation User Guide.  A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.
    @Sendable
    @inlinable
    public func describeStackResources(_ input: DescribeStackResourcesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackResourcesOutput {
        try await self.client.execute(
            operation: "DescribeStackResources", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns Amazon Web Services resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId is specified, the associated resources of the stack that the resource belongs to are returned.  Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources instead.  For deleted stacks, DescribeStackResources returns resource information for up to 90 days after the stack has been deleted. You must specify either StackName or PhysicalResourceId, but not both. In addition, you can specify LogicalResourceId to filter the returned result. For more information about resources, the LogicalResourceId and PhysicalResourceId, see the CloudFormation User Guide.  A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.
    ///
    /// Parameters:
    ///   - logicalResourceId: The logical name of the resource as specified in the template.
    ///   - physicalResourceId: The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation. For example, for an Amazon Elastic Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can pass the EC2 InstanceId to DescribeStackResources to find which stack the instance belongs to and what other resources are part of the stack. Required: Conditional. If you don't specify PhysicalResourceId, you must specify StackName.
    ///   - stackName: The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.   Required: Conditional. If you don't specify StackName, you must specify PhysicalResourceId.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackResources(
        logicalResourceId: String? = nil,
        physicalResourceId: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackResourcesOutput {
        let input = DescribeStackResourcesInput(
            logicalResourceId: logicalResourceId, 
            physicalResourceId: physicalResourceId, 
            stackName: stackName
        )
        return try await self.describeStackResources(input, logger: logger)
    }

    /// Returns the description of the specified StackSet.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.
    @Sendable
    @inlinable
    public func describeStackSet(_ input: DescribeStackSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackSetOutput {
        try await self.client.execute(
            operation: "DescribeStackSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the description of the specified StackSet.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - stackSetName: The name or unique ID of the StackSet whose description you want.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackSet(
        callAs: CallAs? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackSetOutput {
        let input = DescribeStackSetInput(
            callAs: callAs, 
            stackSetName: stackSetName
        )
        return try await self.describeStackSet(input, logger: logger)
    }

    /// Returns the description of the specified StackSet operation.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.
    @Sendable
    @inlinable
    public func describeStackSetOperation(_ input: DescribeStackSetOperationInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStackSetOperationOutput {
        try await self.client.execute(
            operation: "DescribeStackSetOperation", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the description of the specified StackSet operation.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - operationId: The unique ID of the StackSet operation.
    ///   - stackSetName: The name or the unique stack ID of the StackSet for the stack operation.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStackSetOperation(
        callAs: CallAs? = nil,
        operationId: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStackSetOperationOutput {
        let input = DescribeStackSetOperationInput(
            callAs: callAs, 
            operationId: operationId, 
            stackSetName: stackSetName
        )
        return try await self.describeStackSetOperation(input, logger: logger)
    }

    /// Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide.  If the stack doesn't exist, a ValidationError is returned.
    @Sendable
    @inlinable
    public func describeStacks(_ input: DescribeStacksInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeStacksOutput {
        try await self.client.execute(
            operation: "DescribeStacks", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide.  If the stack doesn't exist, a ValidationError is returned.
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeStacks(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeStacksOutput {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.describeStacks(input, logger: logger)
    }

    /// Returns detailed information about an extension from the CloudFormation registry in your current account and Region. If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func describeType(_ input: DescribeTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeTypeOutput {
        try await self.client.execute(
            operation: "DescribeType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns detailed information about an extension from the CloudFormation registry in your current account and Region. If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - publicVersionNumber: The version number of a public third-party extension.
    ///   - publisherId: The publisher ID of the extension publisher. Extensions provided by Amazon Web Services are not assigned a publisher ID.
    ///   - type: The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - versionId: The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered. If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeType(
        arn: String? = nil,
        publicVersionNumber: String? = nil,
        publisherId: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        versionId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeTypeOutput {
        let input = DescribeTypeInput(
            arn: arn, 
            publicVersionNumber: publicVersionNumber, 
            publisherId: publisherId, 
            type: type, 
            typeName: typeName, 
            versionId: versionId
        )
        return try await self.describeType(input, logger: logger)
    }

    /// Returns information about an extension's registration, including its current status and type and version identifiers. When you initiate a registration request using RegisterType, you can then use DescribeTypeRegistration to monitor the progress of that registration request. Once the registration request has completed, use DescribeType to return detailed information about an extension.
    @Sendable
    @inlinable
    public func describeTypeRegistration(_ input: DescribeTypeRegistrationInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeTypeRegistrationOutput {
        try await self.client.execute(
            operation: "DescribeTypeRegistration", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns information about an extension's registration, including its current status and type and version identifiers. When you initiate a registration request using RegisterType, you can then use DescribeTypeRegistration to monitor the progress of that registration request. Once the registration request has completed, use DescribeType to return detailed information about an extension.
    ///
    /// Parameters:
    ///   - registrationToken: The identifier for this registration request. This registration token is generated by CloudFormation when you initiate a registration request using RegisterType.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeTypeRegistration(
        registrationToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeTypeRegistrationOutput {
        let input = DescribeTypeRegistrationInput(
            registrationToken: registrationToken
        )
        return try await self.describeTypeRegistration(input, logger: logger)
    }

    /// Detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackDrift to detect drift on all supported resources for a given stack, or DetectStackResourceDrift to detect drift on individual resources. For a list of stack resources that currently support drift detection, see Resource type support for imports and drift detection.  DetectStackDrift can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources. When detecting drift on a stack, CloudFormation doesn't detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift directly on the nested stack itself.
    @Sendable
    @inlinable
    public func detectStackDrift(_ input: DetectStackDriftInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DetectStackDriftOutput {
        try await self.client.execute(
            operation: "DetectStackDrift", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackDrift to detect drift on all supported resources for a given stack, or DetectStackResourceDrift to detect drift on individual resources. For a list of stack resources that currently support drift detection, see Resource type support for imports and drift detection.  DetectStackDrift can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources. When detecting drift on a stack, CloudFormation doesn't detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift directly on the nested stack itself.
    ///
    /// Parameters:
    ///   - logicalResourceIds: The logical names of any resources you want to use as filters.
    ///   - stackName: The name of the stack for which you want to detect drift.
    ///   - logger: Logger use during operation
    @inlinable
    public func detectStackDrift(
        logicalResourceIds: [String]? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DetectStackDriftOutput {
        let input = DetectStackDriftInput(
            logicalResourceIds: logicalResourceIds, 
            stackName: stackName
        )
        return try await self.detectStackDrift(input, logger: logger)
    }

    /// Returns information about whether a resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection. Resources that don't currently support drift detection can't be checked. For a list of resources that support drift detection, see Resource type support for imports and drift detection.
    @Sendable
    @inlinable
    public func detectStackResourceDrift(_ input: DetectStackResourceDriftInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DetectStackResourceDriftOutput {
        try await self.client.execute(
            operation: "DetectStackResourceDrift", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns information about whether a resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection. Resources that don't currently support drift detection can't be checked. For a list of resources that support drift detection, see Resource type support for imports and drift detection.
    ///
    /// Parameters:
    ///   - logicalResourceId: The logical name of the resource for which to return drift information.
    ///   - stackName: The name of the stack to which the resource belongs.
    ///   - logger: Logger use during operation
    @inlinable
    public func detectStackResourceDrift(
        logicalResourceId: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DetectStackResourceDriftOutput {
        let input = DetectStackResourceDriftInput(
            logicalResourceId: logicalResourceId, 
            stackName: stackName
        )
        return try await self.detectStackResourceDrift(input, logger: logger)
    }

    /// Detect drift on a StackSet. When CloudFormation performs drift detection on a StackSet, it performs drift detection on the stack associated with each stack instance in the StackSet. For more information, see Performing drift detection on CloudFormation StackSets.  DetectStackSetDrift returns the OperationId of the StackSet drift detection operation. Use this operation id with DescribeStackSetOperation to monitor the progress of the drift detection operation. The drift detection operation may take some time, depending on the number of stack instances included in the StackSet, in addition to the number of resources included in each stack. Once the operation has completed, use the following actions to return drift information:   Use DescribeStackSet to return detailed information about the stack set, including detailed information about the last completed drift operation performed on the StackSet. (Information about drift operations that are in progress isn't included.)   Use ListStackInstances to return a list of stack instances belonging to the StackSet, including the drift status and last drift time checked of each instance.   Use DescribeStackInstance to return detailed information about a specific stack instance, including its drift status and last drift time checked.   You can only run a single drift detection operation on a given StackSet at one time. To stop a drift detection StackSet operation, use StopStackSetOperation.
    @Sendable
    @inlinable
    public func detectStackSetDrift(_ input: DetectStackSetDriftInput, logger: Logger = AWSClient.loggingDisabled) async throws -> DetectStackSetDriftOutput {
        try await self.client.execute(
            operation: "DetectStackSetDrift", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Detect drift on a StackSet. When CloudFormation performs drift detection on a StackSet, it performs drift detection on the stack associated with each stack instance in the StackSet. For more information, see Performing drift detection on CloudFormation StackSets.  DetectStackSetDrift returns the OperationId of the StackSet drift detection operation. Use this operation id with DescribeStackSetOperation to monitor the progress of the drift detection operation. The drift detection operation may take some time, depending on the number of stack instances included in the StackSet, in addition to the number of resources included in each stack. Once the operation has completed, use the following actions to return drift information:   Use DescribeStackSet to return detailed information about the stack set, including detailed information about the last completed drift operation performed on the StackSet. (Information about drift operations that are in progress isn't included.)   Use ListStackInstances to return a list of stack instances belonging to the StackSet, including the drift status and last drift time checked of each instance.   Use DescribeStackInstance to return detailed information about a specific stack instance, including its drift status and last drift time checked.   You can only run a single drift detection operation on a given StackSet at one time. To stop a drift detection StackSet operation, use StopStackSetOperation.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - operationId:  The ID of the StackSet operation.
    ///   - operationPreferences: The user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
    ///   - stackSetName: The name of the StackSet on which to perform the drift detection operation.
    ///   - logger: Logger use during operation
    @inlinable
    public func detectStackSetDrift(
        callAs: CallAs? = nil,
        operationId: String? = DetectStackSetDriftInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DetectStackSetDriftOutput {
        let input = DetectStackSetDriftInput(
            callAs: callAs, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            stackSetName: stackSetName
        )
        return try await self.detectStackSetDrift(input, logger: logger)
    }

    /// Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
    @Sendable
    @inlinable
    public func estimateTemplateCost(_ input: EstimateTemplateCostInput, logger: Logger = AWSClient.loggingDisabled) async throws -> EstimateTemplateCostOutput {
        try await self.client.execute(
            operation: "EstimateTemplateCost", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
    ///
    /// Parameters:
    ///   - parameters: A list of Parameter structures that specify input parameters.
    ///   - templateBody: Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
    ///   - logger: Logger use during operation
    @inlinable
    public func estimateTemplateCost(
        parameters: [Parameter]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> EstimateTemplateCostOutput {
        let input = EstimateTemplateCostInput(
            parameters: parameters, 
            templateBody: templateBody, 
            templateURL: templateURL
        )
        return try await self.estimateTemplateCost(input, logger: logger)
    }

    /// Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update. When you execute a change set, CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack. If a stack policy is associated with the stack, CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy. To create a change set for the entire stack hierarchy, IncludeNestedStacks must have been set to True.
    @Sendable
    @inlinable
    public func executeChangeSet(_ input: ExecuteChangeSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ExecuteChangeSetOutput {
        try await self.client.execute(
            operation: "ExecuteChangeSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update. When you execute a change set, CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack. If a stack policy is associated with the stack, CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy. To create a change set for the entire stack hierarchy, IncludeNestedStacks must have been set to True.
    ///
    /// Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of the change set that you want use to update the specified stack.
    ///   - clientRequestToken: A unique identifier for this ExecuteChangeSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to execute a change set to update a stack with the same name. You might retry ExecuteChangeSet requests to ensure that CloudFormation successfully received them.
    ///   - disableRollback: Preserves the state of previously provisioned resources when an operation fails. This parameter can't be specified when the OnStackFailure parameter to the CreateChangeSet API operation was specified.    True - if the stack creation fails, do nothing. This is equivalent to specifying DO_NOTHING for the OnStackFailure parameter to the CreateChangeSet API operation.    False - if the stack creation fails, roll back the stack. This is equivalent to specifying ROLLBACK for the OnStackFailure parameter to the CreateChangeSet API operation.   Default: True
    ///   - retainExceptOnCreate: When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
    ///   - stackName: If you specified the name of a change set, specify the stack name or Amazon Resource Name (ARN) that's associated with the change set you want to execute.
    ///   - logger: Logger use during operation
    @inlinable
    public func executeChangeSet(
        changeSetName: String? = nil,
        clientRequestToken: String? = nil,
        disableRollback: Bool? = nil,
        retainExceptOnCreate: Bool? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ExecuteChangeSetOutput {
        let input = ExecuteChangeSetInput(
            changeSetName: changeSetName, 
            clientRequestToken: clientRequestToken, 
            disableRollback: disableRollback, 
            retainExceptOnCreate: retainExceptOnCreate, 
            stackName: stackName
        )
        return try await self.executeChangeSet(input, logger: logger)
    }

    /// Executes the stack refactor operation.
    @Sendable
    @inlinable
    public func executeStackRefactor(_ input: ExecuteStackRefactorInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "ExecuteStackRefactor", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Executes the stack refactor operation.
    ///
    /// Parameters:
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger use during operation
    @inlinable
    public func executeStackRefactor(
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = ExecuteStackRefactorInput(
            stackRefactorId: stackRefactorId
        )
        return try await self.executeStackRefactor(input, logger: logger)
    }

    /// Retrieves a generated template. If the template is in an InProgress or Pending status then the template returned will be the template when the template was last in a Complete status. If the template has not yet been in a Complete status then an empty template will be returned.
    @Sendable
    @inlinable
    public func getGeneratedTemplate(_ input: GetGeneratedTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> GetGeneratedTemplateOutput {
        try await self.client.execute(
            operation: "GetGeneratedTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Retrieves a generated template. If the template is in an InProgress or Pending status then the template returned will be the template when the template was last in a Complete status. If the template has not yet been in a Complete status then an empty template will be returned.
    ///
    /// Parameters:
    ///   - format: The language to use to retrieve for the generated template. Supported values are:    JSON     YAML
    ///   - generatedTemplateName: The name or Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .
    ///   - logger: Logger use during operation
    @inlinable
    public func getGeneratedTemplate(
        format: TemplateFormat? = nil,
        generatedTemplateName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> GetGeneratedTemplateOutput {
        let input = GetGeneratedTemplateInput(
            format: format, 
            generatedTemplateName: generatedTemplateName
        )
        return try await self.getGeneratedTemplate(input, logger: logger)
    }

    /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
    @Sendable
    @inlinable
    public func getStackPolicy(_ input: GetStackPolicyInput, logger: Logger = AWSClient.loggingDisabled) async throws -> GetStackPolicyOutput {
        try await self.client.execute(
            operation: "GetStackPolicy", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
    ///
    /// Parameters:
    ///   - stackName: The name or unique stack ID that's associated with the stack whose policy you want to get.
    ///   - logger: Logger use during operation
    @inlinable
    public func getStackPolicy(
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> GetStackPolicyOutput {
        let input = GetStackPolicyInput(
            stackName: stackName
        )
        return try await self.getStackPolicy(input, logger: logger)
    }

    /// Returns the template body for a specified stack. You can get the template for running or deleted stacks. For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.  If the template doesn't exist, a ValidationError is returned.
    @Sendable
    @inlinable
    public func getTemplate(_ input: GetTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> GetTemplateOutput {
        try await self.client.execute(
            operation: "GetTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the template body for a specified stack. You can get the template for running or deleted stacks. For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.  If the template doesn't exist, a ValidationError is returned.
    ///
    /// Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName.
    ///   - stackName: The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - templateStage: For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original. To get the template after CloudFormation has processed all transforms, specify Processed. If the template doesn't include transforms, Original and Processed return the same template. By default, CloudFormation specifies Processed.
    ///   - logger: Logger use during operation
    @inlinable
    public func getTemplate(
        changeSetName: String? = nil,
        stackName: String? = nil,
        templateStage: TemplateStage? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> GetTemplateOutput {
        let input = GetTemplateInput(
            changeSetName: changeSetName, 
            stackName: stackName, 
            templateStage: templateStage
        )
        return try await self.getTemplate(input, logger: logger)
    }

    /// Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack or StackSet. You can use the GetTemplateSummary action when you submit a template, or you can get template information for a StackSet, or a running or deleted stack. For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template doesn't exist, a ValidationError is returned.
    @Sendable
    @inlinable
    public func getTemplateSummary(_ input: GetTemplateSummaryInput, logger: Logger = AWSClient.loggingDisabled) async throws -> GetTemplateSummaryOutput {
        try await self.client.execute(
            operation: "GetTemplateSummary", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack or StackSet. You can use the GetTemplateSummary action when you submit a template, or you can get template information for a StackSet, or a running or deleted stack. For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template doesn't exist, a ValidationError is returned.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - stackName: The name or the stack ID that's associated with the stack, which aren't always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
    ///   - stackSetName: The name or unique ID of the StackSet from which the stack was created. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
    ///   - templateBody: Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
    ///   - templateSummaryConfig: Specifies options for the GetTemplateSummary API action.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
    ///   - logger: Logger use during operation
    @inlinable
    public func getTemplateSummary(
        callAs: CallAs? = nil,
        stackName: String? = nil,
        stackSetName: String? = nil,
        templateBody: String? = nil,
        templateSummaryConfig: TemplateSummaryConfig? = nil,
        templateURL: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> GetTemplateSummaryOutput {
        let input = GetTemplateSummaryInput(
            callAs: callAs, 
            stackName: stackName, 
            stackSetName: stackSetName, 
            templateBody: templateBody, 
            templateSummaryConfig: templateSummaryConfig, 
            templateURL: templateURL
        )
        return try await self.getTemplateSummary(input, logger: logger)
    }

    /// Import existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import.
    @Sendable
    @inlinable
    public func importStacksToStackSet(_ input: ImportStacksToStackSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ImportStacksToStackSetOutput {
        try await self.client.execute(
            operation: "ImportStacksToStackSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Import existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import.
    ///
    /// Parameters:
    ///   - callAs: By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   For service managed StackSets, specify DELEGATED_ADMIN.
    ///   - operationId: A unique, user defined, identifier for the StackSet operation.
    ///   - operationPreferences: The user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
    ///   - organizationalUnitIds: The list of OU ID's to which the imported stacks must be mapped as deployment targets.
    ///   - stackIds: The IDs of the stacks you are importing into a StackSet. You import up to 10 stacks per StackSet at a time. Specify either StackIds or StackIdsUrl.
    ///   - stackIdsUrl: The Amazon S3 URL which contains list of stack ids to be inputted. Specify either StackIds or StackIdsUrl.
    ///   - stackSetName: The name of the StackSet. The name must be unique in the Region where you create your StackSet.
    ///   - logger: Logger use during operation
    @inlinable
    public func importStacksToStackSet(
        callAs: CallAs? = nil,
        operationId: String? = ImportStacksToStackSetInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        organizationalUnitIds: [String]? = nil,
        stackIds: [String]? = nil,
        stackIdsUrl: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ImportStacksToStackSetOutput {
        let input = ImportStacksToStackSetInput(
            callAs: callAs, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            organizationalUnitIds: organizationalUnitIds, 
            stackIds: stackIds, 
            stackIdsUrl: stackIdsUrl, 
            stackSetName: stackSetName
        )
        return try await self.importStacksToStackSet(input, logger: logger)
    }

    /// Returns the ID and status of each active change set for a stack. For example, CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state.
    @Sendable
    @inlinable
    public func listChangeSets(_ input: ListChangeSetsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListChangeSetsOutput {
        try await self.client.execute(
            operation: "ListChangeSets", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the ID and status of each active change set for a stack. For example, CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state.
    ///
    /// Parameters:
    ///   - nextToken: A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve.
    ///   - stackName: The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.
    ///   - logger: Logger use during operation
    @inlinable
    public func listChangeSets(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListChangeSetsOutput {
        let input = ListChangeSetsInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.listChangeSets(input, logger: logger)
    }

    /// Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the  Fn::ImportValue function. For more information, see Get exported outputs from a deployed CloudFormation stack.
    @Sendable
    @inlinable
    public func listExports(_ input: ListExportsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListExportsOutput {
        try await self.client.execute(
            operation: "ListExports", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the  Fn::ImportValue function. For more information, see Get exported outputs from a deployed CloudFormation stack.
    ///
    /// Parameters:
    ///   - nextToken: A string (provided by the ListExports response output) that identifies the next page of exported output values that you asked to retrieve.
    ///   - logger: Logger use during operation
    @inlinable
    public func listExports(
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListExportsOutput {
        let input = ListExportsInput(
            nextToken: nextToken
        )
        return try await self.listExports(input, logger: logger)
    }

    /// Lists your generated templates in this Region.
    @Sendable
    @inlinable
    public func listGeneratedTemplates(_ input: ListGeneratedTemplatesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListGeneratedTemplatesOutput {
        try await self.client.execute(
            operation: "ListGeneratedTemplates", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists your generated templates in this Region.
    ///
    /// Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListGeneratedTemplates API action will return at most 50 results in each response. The maximum value is 100.
    ///   - nextToken: A string that identifies the next page of resource scan results.
    ///   - logger: Logger use during operation
    @inlinable
    public func listGeneratedTemplates(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListGeneratedTemplatesOutput {
        let input = ListGeneratedTemplatesInput(
            maxResults: maxResults, 
            nextToken: nextToken
        )
        return try await self.listGeneratedTemplates(input, logger: logger)
    }

    /// Returns summaries of invoked Hooks. For more information, see View invocation summaries for CloudFormation Hooks in the CloudFormation Hooks User Guide. This operation supports the following parameter combinations:   No parameters: Returns all Hook invocation summaries.    TypeArn only: Returns summaries for a specific Hook.    TypeArn and Status: Returns summaries for a specific Hook filtered by status.    TargetId and TargetType: Returns summaries for a specific Hook invocation target.
    @Sendable
    @inlinable
    public func listHookResults(_ input: ListHookResultsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListHookResultsOutput {
        try await self.client.execute(
            operation: "ListHookResults", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summaries of invoked Hooks. For more information, see View invocation summaries for CloudFormation Hooks in the CloudFormation Hooks User Guide. This operation supports the following parameter combinations:   No parameters: Returns all Hook invocation summaries.    TypeArn only: Returns summaries for a specific Hook.    TypeArn and Status: Returns summaries for a specific Hook filtered by status.    TargetId and TargetType: Returns summaries for a specific Hook invocation target.
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of events that you want to retrieve.
    ///   - status: Filters results by the status of Hook invocations. Can only be used in combination with TypeArn. Valid values are:    HOOK_IN_PROGRESS: The Hook is currently running.    HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully.    HOOK_COMPLETE_FAILED: The Hook completed but failed validation.    HOOK_FAILED: The Hook encountered an error during execution.
    ///   - targetId: Filters results by the unique identifier of the target the Hook was invoked against. For change sets, this is the change set ARN. When the target is a Cloud Control API operation, this value must be the HookRequestToken returned by the Cloud Control API request. For more information on the HookRequestToken, see ProgressEvent. Required when TargetType is specified and cannot be used otherwise.
    ///   - targetType: Filters results by target type. Currently, only CHANGE_SET and CLOUD_CONTROL are supported filter options. Required when TargetId is specified and cannot be used otherwise.
    ///   - typeArn: Filters results by the ARN of the Hook. Can be used alone or in combination with Status.
    ///   - logger: Logger use during operation
    @inlinable
    public func listHookResults(
        nextToken: String? = nil,
        status: HookStatus? = nil,
        targetId: String? = nil,
        targetType: ListHookResultsTargetType? = nil,
        typeArn: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListHookResultsOutput {
        let input = ListHookResultsInput(
            nextToken: nextToken, 
            status: status, 
            targetId: targetId, 
            targetType: targetType, 
            typeArn: typeArn
        )
        return try await self.listHookResults(input, logger: logger)
    }

    /// Lists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports. For more information about importing an exported output value, see the Fn::ImportValue function.
    @Sendable
    @inlinable
    public func listImports(_ input: ListImportsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListImportsOutput {
        try await self.client.execute(
            operation: "ListImports", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports. For more information about importing an exported output value, see the Fn::ImportValue function.
    ///
    /// Parameters:
    ///   - exportName: The name of the exported output value. CloudFormation returns the stack names that are importing this value.
    ///   - nextToken: A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.
    ///   - logger: Logger use during operation
    @inlinable
    public func listImports(
        exportName: String? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListImportsOutput {
        let input = ListImportsInput(
            exportName: exportName, 
            nextToken: nextToken
        )
        return try await self.listImports(input, logger: logger)
    }

    /// Lists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation.
    @Sendable
    @inlinable
    public func listResourceScanRelatedResources(_ input: ListResourceScanRelatedResourcesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListResourceScanRelatedResourcesOutput {
        try await self.client.execute(
            operation: "ListResourceScanRelatedResources", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation.
    ///
    /// Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanRelatedResources API action will return up to 100 results in each response. The maximum value is 100.
    ///   - nextToken: A string that identifies the next page of resource scan results.
    ///   - resources: The list of resources for which you want to get the related resources. Up to 100 resources can be provided.
    ///   - resourceScanId: The Amazon Resource Name (ARN) of the resource scan.
    ///   - logger: Logger use during operation
    @inlinable
    public func listResourceScanRelatedResources(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        resources: [ScannedResourceIdentifier]? = nil,
        resourceScanId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListResourceScanRelatedResourcesOutput {
        let input = ListResourceScanRelatedResourcesInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            resources: resources, 
            resourceScanId: resourceScanId
        )
        return try await self.listResourceScanRelatedResources(input, logger: logger)
    }

    /// Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.
    @Sendable
    @inlinable
    public func listResourceScanResources(_ input: ListResourceScanResourcesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListResourceScanResourcesOutput {
        try await self.client.execute(
            operation: "ListResourceScanResources", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.
    ///
    /// Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100.
    ///   - nextToken: A string that identifies the next page of resource scan results.
    ///   - resourceIdentifier: If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).
    ///   - resourceScanId: The Amazon Resource Name (ARN) of the resource scan.
    ///   - resourceTypePrefix: If specified, the returned resources will be of any of the resource types with the specified prefix.
    ///   - tagKey: If specified, the returned resources will have a matching tag key.
    ///   - tagValue: If specified, the returned resources will have a matching tag value.
    ///   - logger: Logger use during operation
    @inlinable
    public func listResourceScanResources(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        resourceIdentifier: String? = nil,
        resourceScanId: String? = nil,
        resourceTypePrefix: String? = nil,
        tagKey: String? = nil,
        tagValue: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListResourceScanResourcesOutput {
        let input = ListResourceScanResourcesInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            resourceIdentifier: resourceIdentifier, 
            resourceScanId: resourceScanId, 
            resourceTypePrefix: resourceTypePrefix, 
            tagKey: tagKey, 
            tagValue: tagValue
        )
        return try await self.listResourceScanResources(input, logger: logger)
    }

    /// List the resource scans from newest to oldest. By default it will return up to 10 resource scans.
    @Sendable
    @inlinable
    public func listResourceScans(_ input: ListResourceScansInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListResourceScansOutput {
        try await self.client.execute(
            operation: "ListResourceScans", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// List the resource scans from newest to oldest. By default it will return up to 10 resource scans.
    ///
    /// Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.
    ///   - nextToken: A string that identifies the next page of resource scan results.
    ///   - scanTypeFilter: The scan type that you want to get summary information about. The default is FULL.
    ///   - logger: Logger use during operation
    @inlinable
    public func listResourceScans(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        scanTypeFilter: ScanType? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListResourceScansOutput {
        let input = ListResourceScansInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            scanTypeFilter: scanTypeFilter
        )
        return try await self.listResourceScans(input, logger: logger)
    }

    /// Returns drift information for resources in a stack instance.   ListStackInstanceResourceDrifts returns drift information for the most recent drift detection operation. If an operation is in progress, it may only return partial results.
    @Sendable
    @inlinable
    public func listStackInstanceResourceDrifts(_ input: ListStackInstanceResourceDriftsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackInstanceResourceDriftsOutput {
        try await self.client.execute(
            operation: "ListStackInstanceResourceDrifts", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns drift information for resources in a stack instance.   ListStackInstanceResourceDrifts returns drift information for the most recent drift detection operation. If an operation is in progress, it may only return partial results.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - operationId: The unique ID of the drift operation.
    ///   - stackInstanceAccount: The name of the Amazon Web Services account that you want to list resource drifts for.
    ///   - stackInstanceRegion: The name of the Region where you want to list resource drifts.
    ///   - stackInstanceResourceDriftStatuses: The resource drift status of the stack instance.     DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to list drifted resources for.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackInstanceResourceDrifts(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        operationId: String? = nil,
        stackInstanceAccount: String? = nil,
        stackInstanceRegion: String? = nil,
        stackInstanceResourceDriftStatuses: [StackResourceDriftStatus]? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackInstanceResourceDriftsOutput {
        let input = ListStackInstanceResourceDriftsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            operationId: operationId, 
            stackInstanceAccount: stackInstanceAccount, 
            stackInstanceRegion: stackInstanceRegion, 
            stackInstanceResourceDriftStatuses: stackInstanceResourceDriftStatuses, 
            stackSetName: stackSetName
        )
        return try await self.listStackInstanceResourceDrifts(input, logger: logger)
    }

    /// Returns summary information about stack instances that are associated with the specified StackSet. You can filter for stack instances that are associated with a specific Amazon Web Services account name or Region, or that have a specific status.
    @Sendable
    @inlinable
    public func listStackInstances(_ input: ListStackInstancesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackInstancesOutput {
        try await self.client.execute(
            operation: "ListStackInstances", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about stack instances that are associated with the specified StackSet. You can filter for stack instances that are associated with a specific Amazon Web Services account name or Region, or that have a specific status.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - filters: The filter to apply to stack instances
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous request didn't return all the remaining results, the response's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - stackInstanceAccount: The name of the Amazon Web Services account that you want to list stack instances for.
    ///   - stackInstanceRegion: The name of the Region where you want to list stack instances.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to list stack instances for.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackInstances(
        callAs: CallAs? = nil,
        filters: [StackInstanceFilter]? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        stackInstanceAccount: String? = nil,
        stackInstanceRegion: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackInstancesOutput {
        let input = ListStackInstancesInput(
            callAs: callAs, 
            filters: filters, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            stackInstanceAccount: stackInstanceAccount, 
            stackInstanceRegion: stackInstanceRegion, 
            stackSetName: stackSetName
        )
        return try await self.listStackInstances(input, logger: logger)
    }

    /// Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action.
    @Sendable
    @inlinable
    public func listStackRefactorActions(_ input: ListStackRefactorActionsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackRefactorActionsOutput {
        try await self.client.execute(
            operation: "ListStackRefactorActions", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action.
    ///
    /// Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackRefactorActions(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackRefactorActionsOutput {
        let input = ListStackRefactorActionsInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            stackRefactorId: stackRefactorId
        )
        return try await self.listStackRefactorActions(input, logger: logger)
    }

    /// Lists all account stack refactor operations and their statuses.
    @Sendable
    @inlinable
    public func listStackRefactors(_ input: ListStackRefactorsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackRefactorsOutput {
        try await self.client.execute(
            operation: "ListStackRefactors", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists all account stack refactor operations and their statuses.
    ///
    /// Parameters:
    ///   - executionStatusFilter: Execution status to use as a filter. Specify one or more execution status codes to list only stack refactors with the specified execution status codes.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackRefactors(
        executionStatusFilter: [StackRefactorExecutionStatus]? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackRefactorsOutput {
        let input = ListStackRefactorsInput(
            executionStatusFilter: executionStatusFilter, 
            maxResults: maxResults, 
            nextToken: nextToken
        )
        return try await self.listStackRefactors(input, logger: logger)
    }

    /// Returns descriptions of all resources of the specified stack. For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.
    @Sendable
    @inlinable
    public func listStackResources(_ input: ListStackResourcesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackResourcesOutput {
        try await self.client.execute(
            operation: "ListStackResources", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns descriptions of all resources of the specified stack. For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of stack resources that you want to retrieve.
    ///   - stackName: The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackResources(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackResourcesOutput {
        let input = ListStackResourcesInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        return try await self.listStackResources(input, logger: logger)
    }

    /// Returns summary information about deployment targets for a StackSet.
    @Sendable
    @inlinable
    public func listStackSetAutoDeploymentTargets(_ input: ListStackSetAutoDeploymentTargetsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackSetAutoDeploymentTargetsOutput {
        try await self.client.execute(
            operation: "ListStackSetAutoDeploymentTargets", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about deployment targets for a StackSet.
    ///
    /// Parameters:
    ///   - callAs: Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: A string that identifies the next page of deployment targets that you want to retrieve.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to get automatic deployment targets for.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackSetAutoDeploymentTargets(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackSetAutoDeploymentTargetsOutput {
        let input = ListStackSetAutoDeploymentTargetsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            stackSetName: stackSetName
        )
        return try await self.listStackSetAutoDeploymentTargets(input, logger: logger)
    }

    /// Returns summary information about the results of a StackSet operation.  This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.
    @Sendable
    @inlinable
    public func listStackSetOperationResults(_ input: ListStackSetOperationResultsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackSetOperationResultsOutput {
        try await self.client.execute(
            operation: "ListStackSetOperationResults", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about the results of a StackSet operation.  This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - filters: The filter to apply to operation results.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSetOperationResults again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - operationId: The ID of the StackSet operation.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to get operation results for.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackSetOperationResults(
        callAs: CallAs? = nil,
        filters: [OperationResultFilter]? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        operationId: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackSetOperationResultsOutput {
        let input = ListStackSetOperationResultsInput(
            callAs: callAs, 
            filters: filters, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            operationId: operationId, 
            stackSetName: stackSetName
        )
        return try await self.listStackSetOperationResults(input, logger: logger)
    }

    /// Returns summary information about operations performed on a StackSet.  This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.
    @Sendable
    @inlinable
    public func listStackSetOperations(_ input: ListStackSetOperationsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackSetOperationsOutput {
        try await self.client.execute(
            operation: "ListStackSetOperations", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about operations performed on a StackSet.  This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSetOperations again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to get operation summaries for.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackSetOperations(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackSetOperationsOutput {
        let input = ListStackSetOperationsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            stackSetName: stackSetName
        )
        return try await self.listStackSetOperations(input, logger: logger)
    }

    /// Returns summary information about StackSets that are associated with the user.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.    [Self-managed permissions] If you set the CallAs parameter to SELF while signed in to your Amazon Web Services account, ListStackSets returns all self-managed StackSets in your Amazon Web Services account.   [Service-managed permissions] If you set the CallAs parameter to SELF while signed in to the organization's management account, ListStackSets returns all StackSets in the management account.   [Service-managed permissions] If you set the CallAs parameter to DELEGATED_ADMIN while signed in to your member account, ListStackSets returns all StackSets with service-managed permissions in the management account.
    @Sendable
    @inlinable
    public func listStackSets(_ input: ListStackSetsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStackSetsOutput {
        try await self.client.execute(
            operation: "ListStackSets", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about StackSets that are associated with the user.  This API provides strongly consistent reads meaning it will always return the most up-to-date data.    [Self-managed permissions] If you set the CallAs parameter to SELF while signed in to your Amazon Web Services account, ListStackSets returns all self-managed StackSets in your Amazon Web Services account.   [Service-managed permissions] If you set the CallAs parameter to SELF while signed in to the organization's management account, ListStackSets returns all StackSets in the management account.   [Service-managed permissions] If you set the CallAs parameter to DELEGATED_ADMIN while signed in to your member account, ListStackSets returns all StackSets with service-managed permissions in the management account.
    ///
    /// Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSets again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - status: The status of the StackSets that you want to get summary information about.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStackSets(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        status: StackSetStatus? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStackSetsOutput {
        let input = ListStackSetsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            status: status
        )
        return try await self.listStackSets(input, logger: logger)
    }

    /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
    @Sendable
    @inlinable
    public func listStacks(_ input: ListStacksInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListStacksOutput {
        try await self.client.execute(
            operation: "ListStacks", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
    ///
    /// Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackStatusFilter: Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.
    ///   - logger: Logger use during operation
    @inlinable
    public func listStacks(
        nextToken: String? = nil,
        stackStatusFilter: [StackStatus]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListStacksOutput {
        let input = ListStacksInput(
            nextToken: nextToken, 
            stackStatusFilter: stackStatusFilter
        )
        return try await self.listStacks(input, logger: logger)
    }

    /// Returns a list of registration tokens for the specified extension(s).
    @Sendable
    @inlinable
    public func listTypeRegistrations(_ input: ListTypeRegistrationsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListTypeRegistrationsOutput {
        try await self.client.execute(
            operation: "ListTypeRegistrations", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns a list of registration tokens for the specified extension(s).
    ///
    /// Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - registrationStatusFilter: The current status of the extension registration request. The default is IN_PROGRESS.
    ///   - type: The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeArn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - logger: Logger use during operation
    @inlinable
    public func listTypeRegistrations(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        registrationStatusFilter: RegistrationStatus? = nil,
        type: RegistryType? = nil,
        typeArn: String? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListTypeRegistrationsOutput {
        let input = ListTypeRegistrationsInput(
            maxResults: maxResults, 
            nextToken: nextToken, 
            registrationStatusFilter: registrationStatusFilter, 
            type: type, 
            typeArn: typeArn, 
            typeName: typeName
        )
        return try await self.listTypeRegistrations(input, logger: logger)
    }

    /// Returns summary information about the versions of an extension.
    @Sendable
    @inlinable
    public func listTypeVersions(_ input: ListTypeVersionsInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListTypeVersionsOutput {
        try await self.client.execute(
            operation: "ListTypeVersions", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about the versions of an extension.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - deprecatedStatus: The deprecation status of the extension versions that you want to get summary information about. Valid values include:    LIVE: The extension version is registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope.    DEPRECATED: The extension version has been deregistered and can no longer be used in CloudFormation operations.   The default is LIVE.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - publisherId: The publisher ID of the extension publisher. Extensions published by Amazon aren't assigned a publisher ID.
    ///   - type: The kind of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - logger: Logger use during operation
    @inlinable
    public func listTypeVersions(
        arn: String? = nil,
        deprecatedStatus: DeprecatedStatus? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        publisherId: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListTypeVersionsOutput {
        let input = ListTypeVersionsInput(
            arn: arn, 
            deprecatedStatus: deprecatedStatus, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            publisherId: publisherId, 
            type: type, 
            typeName: typeName
        )
        return try await self.listTypeVersions(input, logger: logger)
    }

    /// Returns summary information about all extensions, including your private resource types, modules, and Hooks as well as all public extensions from Amazon Web Services and third-party publishers.
    @Sendable
    @inlinable
    public func listTypes(_ input: ListTypesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ListTypesOutput {
        try await self.client.execute(
            operation: "ListTypes", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns summary information about all extensions, including your private resource types, modules, and Hooks as well as all public extensions from Amazon Web Services and third-party publishers.
    ///
    /// Parameters:
    ///   - deprecatedStatus: The deprecation status of the extension that you want to get summary information about. Valid values include:    LIVE: The extension is registered for use in CloudFormation operations.    DEPRECATED: The extension has been deregistered and can no longer be used in CloudFormation operations.
    ///   - filters: Filter criteria to use in determining which extensions to return. Filters must be compatible with Visibility to return valid results. For example, specifying AWS_TYPES for Category and PRIVATE for Visibility returns an empty list of types, but specifying PUBLIC for Visibility returns the desired list.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - nextToken: If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
    ///   - provisioningType: For resource types, the provisioning behavior of the resource type. CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted. Valid values include:    FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.    IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.    NON_PROVISIONABLE: The resource type doesn't include create, read, and delete handlers, and therefore can't actually be provisioned.   The default is FULLY_MUTABLE.
    ///   - type: The type of extension.
    ///   - visibility: The scope at which the extensions are visible and usable in CloudFormation operations. Valid values include:    PRIVATE: Extensions that are visible and usable within this account and Region. This includes:   Private extensions you have registered in this account and Region.   Public extensions that you have activated in this account and Region.      PUBLIC: Extensions that are publicly visible and available to be activated within any Amazon Web Services account. This includes extensions from Amazon Web Services and third-party publishers.   The default is PRIVATE.
    ///   - logger: Logger use during operation
    @inlinable
    public func listTypes(
        deprecatedStatus: DeprecatedStatus? = nil,
        filters: TypeFilters? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        provisioningType: ProvisioningType? = nil,
        type: RegistryType? = nil,
        visibility: Visibility? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListTypesOutput {
        let input = ListTypesInput(
            deprecatedStatus: deprecatedStatus, 
            filters: filters, 
            maxResults: maxResults, 
            nextToken: nextToken, 
            provisioningType: provisioningType, 
            type: type, 
            visibility: visibility
        )
        return try await self.listTypes(input, logger: logger)
    }

    /// Publishes the specified extension to the CloudFormation registry as a public extension in this Region. Public extensions are available for use by all CloudFormation users. For more information about publishing extensions, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide. To publish an extension, you must be registered as a publisher with CloudFormation. For more information, see RegisterPublisher.
    @Sendable
    @inlinable
    public func publishType(_ input: PublishTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> PublishTypeOutput {
        try await self.client.execute(
            operation: "PublishType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Publishes the specified extension to the CloudFormation registry as a public extension in this Region. Public extensions are available for use by all CloudFormation users. For more information about publishing extensions, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide. To publish an extension, you must be registered as a publisher with CloudFormation. For more information, see RegisterPublisher.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify Arn, or TypeName and Type.
    ///   - publicVersionNumber: The version number to assign to this version of the extension. Use the following format, and adhere to semantic versioning when assigning a version number to your extension:  MAJOR.MINOR.PATCH  For more information, see Semantic Versioning 2.0.0. If you don't specify a version number, CloudFormation increments the version number by one minor version release. You cannot specify a version number the first time you publish a type. CloudFormation automatically sets the first version number to be 1.0.0.
    ///   - type: The type of the extension. Conditional: You must specify Arn, or TypeName and Type.
    ///   - typeName: The name of the extension. Conditional: You must specify Arn, or TypeName and Type.
    ///   - logger: Logger use during operation
    @inlinable
    public func publishType(
        arn: String? = nil,
        publicVersionNumber: String? = nil,
        type: ThirdPartyType? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> PublishTypeOutput {
        let input = PublishTypeInput(
            arn: arn, 
            publicVersionNumber: publicVersionNumber, 
            type: type, 
            typeName: typeName
        )
        return try await self.publishType(input, logger: logger)
    }

    /// Reports progress of a resource handler to CloudFormation. Reserved for use by the CloudFormation CLI. Don't use this API in your code.
    @Sendable
    @inlinable
    public func recordHandlerProgress(_ input: RecordHandlerProgressInput, logger: Logger = AWSClient.loggingDisabled) async throws -> RecordHandlerProgressOutput {
        try await self.client.execute(
            operation: "RecordHandlerProgress", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Reports progress of a resource handler to CloudFormation. Reserved for use by the CloudFormation CLI. Don't use this API in your code.
    ///
    /// Parameters:
    ///   - bearerToken: Reserved for use by the CloudFormation CLI.
    ///   - clientRequestToken: Reserved for use by the CloudFormation CLI.
    ///   - currentOperationStatus: Reserved for use by the CloudFormation CLI.
    ///   - errorCode: Reserved for use by the CloudFormation CLI.
    ///   - operationStatus: Reserved for use by the CloudFormation CLI.
    ///   - resourceModel: Reserved for use by the CloudFormation CLI.
    ///   - statusMessage: Reserved for use by the CloudFormation CLI.
    ///   - logger: Logger use during operation
    @inlinable
    public func recordHandlerProgress(
        bearerToken: String? = nil,
        clientRequestToken: String? = nil,
        currentOperationStatus: OperationStatus? = nil,
        errorCode: HandlerErrorCode? = nil,
        operationStatus: OperationStatus? = nil,
        resourceModel: String? = nil,
        statusMessage: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> RecordHandlerProgressOutput {
        let input = RecordHandlerProgressInput(
            bearerToken: bearerToken, 
            clientRequestToken: clientRequestToken, 
            currentOperationStatus: currentOperationStatus, 
            errorCode: errorCode, 
            operationStatus: operationStatus, 
            resourceModel: resourceModel, 
            statusMessage: statusMessage
        )
        return try await self.recordHandlerProgress(input, logger: logger)
    }

    /// Registers your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all Amazon Web Services Regions. For information about requirements for registering as a public extension publisher, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.
    @Sendable
    @inlinable
    public func registerPublisher(_ input: RegisterPublisherInput, logger: Logger = AWSClient.loggingDisabled) async throws -> RegisterPublisherOutput {
        try await self.client.execute(
            operation: "RegisterPublisher", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Registers your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all Amazon Web Services Regions. For information about requirements for registering as a public extension publisher, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.
    ///
    /// Parameters:
    ///   - acceptTermsAndConditions: Whether you accept the Terms and Conditions for publishing extensions in the CloudFormation registry. You must accept the terms and conditions in order to register to publish public extensions to the CloudFormation registry. The default is false.
    ///   - connectionArn: If you are using a Bitbucket or GitHub account for identity verification, the Amazon Resource Name (ARN) for your connection to that account. For more information, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.
    ///   - logger: Logger use during operation
    @inlinable
    public func registerPublisher(
        acceptTermsAndConditions: Bool? = nil,
        connectionArn: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> RegisterPublisherOutput {
        let input = RegisterPublisherInput(
            acceptTermsAndConditions: acceptTermsAndConditions, 
            connectionArn: connectionArn
        )
        return try await self.registerPublisher(input, logger: logger)
    }

    /// Registers an extension with the CloudFormation service. Registering an extension makes it available for use in CloudFormation templates in your Amazon Web Services account, and includes:   Validating the extension schema.   Determining which handlers, if any, have been specified for the extension.   Making the extension available for use in your account.   For more information about how to develop extensions and ready them for registration, see Creating resource types using the CloudFormation CLI in the CloudFormation Command Line Interface (CLI) User Guide. You can have a maximum of 50 resource extension versions registered at a time. This maximum is per account and per Region. Use DeregisterType to deregister specific extension versions if necessary. Once you have initiated a registration request using RegisterType, you can use DescribeTypeRegistration to monitor the progress of the registration request. Once you have registered a private extension in your account and Region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func registerType(_ input: RegisterTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> RegisterTypeOutput {
        try await self.client.execute(
            operation: "RegisterType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Registers an extension with the CloudFormation service. Registering an extension makes it available for use in CloudFormation templates in your Amazon Web Services account, and includes:   Validating the extension schema.   Determining which handlers, if any, have been specified for the extension.   Making the extension available for use in your account.   For more information about how to develop extensions and ready them for registration, see Creating resource types using the CloudFormation CLI in the CloudFormation Command Line Interface (CLI) User Guide. You can have a maximum of 50 resource extension versions registered at a time. This maximum is per account and per Region. Use DeregisterType to deregister specific extension versions if necessary. Once you have initiated a registration request using RegisterType, you can use DescribeTypeRegistration to monitor the progress of the registration request. Once you have registered a private extension in your account and Region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier that acts as an idempotency key for this registration request. Specifying a client request token prevents CloudFormation from generating more than one version of an extension from the same registration request, even if the request is submitted multiple times.
    ///   - executionRoleArn: The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension. For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principal (resources.cloudformation.amazonaws.com). For more information about adding trust relationships, see Modifying a role trust policy in the Identity and Access Management User Guide. If your extension calls Amazon Web Services APIs in any of its handlers, you must create an  IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.
    ///   - loggingConfig: Specifies logging configuration information for an extension.
    ///   - schemaHandlerPackage: A URL to the S3 bucket that contains the extension project package that contains the necessary files for the extension you want to register. For information about generating a schema handler package for the extension you want to register, see submit in the CloudFormation Command Line Interface (CLI) User Guide.  The user registering the extension must be able to access the package in the S3 bucket. That's, the user needs to have GetObject permissions for the schema handler package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the Identity and Access Management User Guide.
    ///   - type: The kind of extension.
    ///   - typeName: The name of the extension being registered. We suggest that extension names adhere to the following patterns:   For resource types, company_or_organization::service::type.   For modules, company_or_organization::service::type::MODULE.   For Hooks, MyCompany::Testing::MyTestHook.    The following organization namespaces are reserved and can't be used in your extension names:    Alexa     AMZN     Amazon     AWS     Custom     Dev
    ///   - logger: Logger use during operation
    @inlinable
    public func registerType(
        clientRequestToken: String? = nil,
        executionRoleArn: String? = nil,
        loggingConfig: LoggingConfig? = nil,
        schemaHandlerPackage: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> RegisterTypeOutput {
        let input = RegisterTypeInput(
            clientRequestToken: clientRequestToken, 
            executionRoleArn: executionRoleArn, 
            loggingConfig: loggingConfig, 
            schemaHandlerPackage: schemaHandlerPackage, 
            type: type, 
            typeName: typeName
        )
        return try await self.registerType(input, logger: logger)
    }

    /// When specifying RollbackStack, you preserve the state of previously provisioned resources when an operation fails. You can check the status of the stack through the DescribeStacks operation. Rolls back the specified stack to the last known stable state from CREATE_FAILED or UPDATE_FAILED stack statuses. This operation will delete a stack if it doesn't contain a last known stable state. A last known stable state includes any status in a *_COMPLETE. This includes the following stack statuses.    CREATE_COMPLETE     UPDATE_COMPLETE     UPDATE_ROLLBACK_COMPLETE     IMPORT_COMPLETE     IMPORT_ROLLBACK_COMPLETE
    @Sendable
    @inlinable
    public func rollbackStack(_ input: RollbackStackInput, logger: Logger = AWSClient.loggingDisabled) async throws -> RollbackStackOutput {
        try await self.client.execute(
            operation: "RollbackStack", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// When specifying RollbackStack, you preserve the state of previously provisioned resources when an operation fails. You can check the status of the stack through the DescribeStacks operation. Rolls back the specified stack to the last known stable state from CREATE_FAILED or UPDATE_FAILED stack statuses. This operation will delete a stack if it doesn't contain a last known stable state. A last known stable state includes any status in a *_COMPLETE. This includes the following stack statuses.    CREATE_COMPLETE     UPDATE_COMPLETE     UPDATE_ROLLBACK_COMPLETE     IMPORT_COMPLETE     IMPORT_ROLLBACK_COMPLETE
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier for this RollbackStack request.
    ///   - retainExceptOnCreate: When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to rollback the stack.
    ///   - stackName: The name that's associated with the stack.
    ///   - logger: Logger use during operation
    @inlinable
    public func rollbackStack(
        clientRequestToken: String? = nil,
        retainExceptOnCreate: Bool? = nil,
        roleARN: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> RollbackStackOutput {
        let input = RollbackStackInput(
            clientRequestToken: clientRequestToken, 
            retainExceptOnCreate: retainExceptOnCreate, 
            roleARN: roleARN, 
            stackName: stackName
        )
        return try await self.rollbackStack(input, logger: logger)
    }

    /// Sets a stack policy for a specified stack.
    @Sendable
    @inlinable
    public func setStackPolicy(_ input: SetStackPolicyInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "SetStackPolicy", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Sets a stack policy for a specified stack.
    ///
    /// Parameters:
    ///   - stackName: The name or unique stack ID that you want to associate a policy with.
    ///   - stackPolicyBody: Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
    ///   - stackPolicyURL: Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
    ///   - logger: Logger use during operation
    @inlinable
    public func setStackPolicy(
        stackName: String? = nil,
        stackPolicyBody: String? = nil,
        stackPolicyURL: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = SetStackPolicyInput(
            stackName: stackName, 
            stackPolicyBody: stackPolicyBody, 
            stackPolicyURL: stackPolicyURL
        )
        return try await self.setStackPolicy(input, logger: logger)
    }

    /// Specifies the configuration data for a CloudFormation extension, such as a resource or Hook, in the given account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide. To view the current configuration data for an extension, refer to the ConfigurationSchema element of DescribeType.  It's strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more information, see Specify values stored in other services using dynamic references in the CloudFormation User Guide.  For more information about setting the configuration data for resource types, see Defining the account-level configuration of an extension in the CloudFormation Command Line Interface (CLI) User Guide. For more information about setting the configuration data for Hooks, see the CloudFormation Hooks User Guide.
    @Sendable
    @inlinable
    public func setTypeConfiguration(_ input: SetTypeConfigurationInput, logger: Logger = AWSClient.loggingDisabled) async throws -> SetTypeConfigurationOutput {
        try await self.client.execute(
            operation: "SetTypeConfiguration", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Specifies the configuration data for a CloudFormation extension, such as a resource or Hook, in the given account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide. To view the current configuration data for an extension, refer to the ConfigurationSchema element of DescribeType.  It's strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more information, see Specify values stored in other services using dynamic references in the CloudFormation User Guide.  For more information about setting the configuration data for resource types, see Defining the account-level configuration of an extension in the CloudFormation Command Line Interface (CLI) User Guide. For more information about setting the configuration data for Hooks, see the CloudFormation Hooks User Guide.
    ///
    /// Parameters:
    ///   - configuration: The configuration data for the extension in this account and Region. The configuration data must be formatted as JSON and validate against the extension's schema returned in the Schema response element of DescribeType.
    ///   - configurationAlias: An alias by which to refer to this extension configuration data. Conditional: Specifying a configuration alias is required when setting a configuration for a resource type extension.
    ///   - type: The type of extension. Conditional: You must specify ConfigurationArn, or Type and TypeName.
    ///   - typeArn: The Amazon Resource Name (ARN) for the extension in this account and Region. For public extensions, this will be the ARN assigned when you call the ActivateType API operation in this account and Region. For private extensions, this will be the ARN assigned when you call the RegisterType API operation in this account and Region. Do not include the extension versions suffix at the end of the ARN. You can set the configuration for an extension, but not for a specific extension version.
    ///   - typeName: The name of the extension. Conditional: You must specify ConfigurationArn, or Type and TypeName.
    ///   - logger: Logger use during operation
    @inlinable
    public func setTypeConfiguration(
        configuration: String? = nil,
        configurationAlias: String? = nil,
        type: ThirdPartyType? = nil,
        typeArn: String? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> SetTypeConfigurationOutput {
        let input = SetTypeConfigurationInput(
            configuration: configuration, 
            configurationAlias: configurationAlias, 
            type: type, 
            typeArn: typeArn, 
            typeName: typeName
        )
        return try await self.setTypeConfiguration(input, logger: logger)
    }

    /// Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations.
    @Sendable
    @inlinable
    public func setTypeDefaultVersion(_ input: SetTypeDefaultVersionInput, logger: Logger = AWSClient.loggingDisabled) async throws -> SetTypeDefaultVersionOutput {
        try await self.client.execute(
            operation: "SetTypeDefaultVersion", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - type: The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - versionId: The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.
    ///   - logger: Logger use during operation
    @inlinable
    public func setTypeDefaultVersion(
        arn: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        versionId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> SetTypeDefaultVersionOutput {
        let input = SetTypeDefaultVersionInput(
            arn: arn, 
            type: type, 
            typeName: typeName, 
            versionId: versionId
        )
        return try await self.setTypeDefaultVersion(input, logger: logger)
    }

    /// Sends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource operation is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
    @Sendable
    @inlinable
    public func signalResource(_ input: SignalResourceInput, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "SignalResource", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Sends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource operation is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
    ///
    /// Parameters:
    ///   - logicalResourceId: The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
    ///   - stackName: The stack name or unique stack ID that includes the resource that you want to signal.
    ///   - status: The status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.
    ///   - uniqueId: A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
    ///   - logger: Logger use during operation
    @inlinable
    public func signalResource(
        logicalResourceId: String? = nil,
        stackName: String? = nil,
        status: ResourceSignalStatus? = nil,
        uniqueId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = SignalResourceInput(
            logicalResourceId: logicalResourceId, 
            stackName: stackName, 
            status: status, 
            uniqueId: uniqueId
        )
        return try await self.signalResource(input, logger: logger)
    }

    /// Starts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action.
    @Sendable
    @inlinable
    public func startResourceScan(_ input: StartResourceScanInput, logger: Logger = AWSClient.loggingDisabled) async throws -> StartResourceScanOutput {
        try await self.client.execute(
            operation: "StartResourceScan", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Starts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action.
    ///
    /// Parameters:
    ///   - clientRequestToken: A unique identifier for this StartResourceScan request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to start a new resource scan.
    ///   - scanFilters: The scan filters to use.
    ///   - logger: Logger use during operation
    @inlinable
    public func startResourceScan(
        clientRequestToken: String? = nil,
        scanFilters: [ScanFilter]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> StartResourceScanOutput {
        let input = StartResourceScanInput(
            clientRequestToken: clientRequestToken, 
            scanFilters: scanFilters
        )
        return try await self.startResourceScan(input, logger: logger)
    }

    /// Stops an in-progress operation on a StackSet and its associated stack instances. StackSets will cancel all the unstarted stack instance deployments and wait for those are in-progress to complete.
    @Sendable
    @inlinable
    public func stopStackSetOperation(_ input: StopStackSetOperationInput, logger: Logger = AWSClient.loggingDisabled) async throws -> StopStackSetOperationOutput {
        try await self.client.execute(
            operation: "StopStackSetOperation", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Stops an in-progress operation on a StackSet and its associated stack instances. StackSets will cancel all the unstarted stack instance deployments and wait for those are in-progress to complete.
    ///
    /// Parameters:
    ///   - callAs: Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. Valid only if the StackSet uses service-managed permissions. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - operationId: The ID of the stack operation.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to stop the operation for.
    ///   - logger: Logger use during operation
    @inlinable
    public func stopStackSetOperation(
        callAs: CallAs? = nil,
        operationId: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> StopStackSetOperationOutput {
        let input = StopStackSetOperationInput(
            callAs: callAs, 
            operationId: operationId, 
            stackSetName: stackSetName
        )
        return try await self.stopStackSetOperation(input, logger: logger)
    }

    /// Tests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry.   For resource types, this includes passing all contracts tests defined for the type.   For modules, this includes determining if the module's model meets all necessary requirements.   For more information, see Testing your public extension before publishing in the CloudFormation Command Line Interface (CLI) User Guide. If you don't specify a version, CloudFormation uses the default version of the extension in your account and Region for testing. To perform testing, CloudFormation assumes the execution role specified when the type was registered. For more information, see RegisterType. Once you've initiated testing on an extension using TestType, you can pass the returned TypeVersionArn into DescribeType to monitor the current test status and test status description for the extension. An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.
    @Sendable
    @inlinable
    public func testType(_ input: TestTypeInput, logger: Logger = AWSClient.loggingDisabled) async throws -> TestTypeOutput {
        try await self.client.execute(
            operation: "TestType", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Tests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry.   For resource types, this includes passing all contracts tests defined for the type.   For modules, this includes determining if the module's model meets all necessary requirements.   For more information, see Testing your public extension before publishing in the CloudFormation Command Line Interface (CLI) User Guide. If you don't specify a version, CloudFormation uses the default version of the extension in your account and Region for testing. To perform testing, CloudFormation assumes the execution role specified when the type was registered. For more information, see RegisterType. Once you've initiated testing on an extension using TestType, you can pass the returned TypeVersionArn into DescribeType to monitor the current test status and test status description for the extension. An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.
    ///
    /// Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify Arn, or TypeName and Type.
    ///   - logDeliveryBucket: The S3 bucket to which CloudFormation delivers the contract test execution logs. CloudFormation delivers the logs by the time contract testing has completed and the extension has been assigned a test type status of PASSED or FAILED. The user calling TestType must be able to access items in the specified S3 bucket. Specifically, the user needs the following permissions:    GetObject     PutObject    For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the Identity and Access Management User Guide.
    ///   - type: The type of the extension to test. Conditional: You must specify Arn, or TypeName and Type.
    ///   - typeName: The name of the extension to test. Conditional: You must specify Arn, or TypeName and Type.
    ///   - versionId: The version of the extension to test. You can specify the version id with either Arn, or with TypeName and Type. If you don't specify a version, CloudFormation uses the default version of the extension in this account and Region for testing.
    ///   - logger: Logger use during operation
    @inlinable
    public func testType(
        arn: String? = nil,
        logDeliveryBucket: String? = nil,
        type: ThirdPartyType? = nil,
        typeName: String? = nil,
        versionId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> TestTypeOutput {
        let input = TestTypeInput(
            arn: arn, 
            logDeliveryBucket: logDeliveryBucket, 
            type: type, 
            typeName: typeName, 
            versionId: versionId
        )
        return try await self.testType(input, logger: logger)
    }

    /// Updates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy and UpdateReplacePolicy settings. You can check the status of the update to the generated template using the DescribeGeneratedTemplate API action.
    @Sendable
    @inlinable
    public func updateGeneratedTemplate(_ input: UpdateGeneratedTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> UpdateGeneratedTemplateOutput {
        try await self.client.execute(
            operation: "UpdateGeneratedTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy and UpdateReplacePolicy settings. You can check the status of the update to the generated template using the DescribeGeneratedTemplate API action.
    ///
    /// Parameters:
    ///   - addResources: An optional list of resources to be added to the generated template.
    ///   - generatedTemplateName: The name or Amazon Resource Name (ARN) of a generated template.
    ///   - newGeneratedTemplateName: An optional new name to assign to the generated template.
    ///   - refreshAllResources: If true, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
    ///   - removeResources: A list of logical ids for resources to remove from the generated template.
    ///   - templateConfiguration: The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateGeneratedTemplate(
        addResources: [ResourceDefinition]? = nil,
        generatedTemplateName: String? = nil,
        newGeneratedTemplateName: String? = nil,
        refreshAllResources: Bool? = nil,
        removeResources: [String]? = nil,
        templateConfiguration: TemplateConfiguration? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> UpdateGeneratedTemplateOutput {
        let input = UpdateGeneratedTemplateInput(
            addResources: addResources, 
            generatedTemplateName: generatedTemplateName, 
            newGeneratedTemplateName: newGeneratedTemplateName, 
            refreshAllResources: refreshAllResources, 
            removeResources: removeResources, 
            templateConfiguration: templateConfiguration
        )
        return try await self.updateGeneratedTemplate(input, logger: logger)
    }

    /// Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack through the DescribeStacks action. To get a copy of the template for an existing stack, you can use the GetTemplate action. For more information about updating a stack and monitoring the progress of the update, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
    @Sendable
    @inlinable
    public func updateStack(_ input: UpdateStackInput, logger: Logger = AWSClient.loggingDisabled) async throws -> UpdateStackOutput {
        try await self.client.execute(
            operation: "UpdateStack", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack through the DescribeStacks action. To get a copy of the template for an existing stack, you can use the GetTemplate action. For more information about updating a stack and monitoring the progress of the update, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
    ///
    /// Parameters:
    ///   - capabilities: In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account, for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.     AWS::IAM::AccessKey      AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy     AWS::IAM::Policy      AWS::IAM::Role      AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation. If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability.  You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs. Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.  For more information, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - clientRequestToken: A unique identifier for this UpdateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to update a stack with the same name. You might retry UpdateStack requests to ensure that CloudFormation successfully received them. All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
    ///   - disableRollback: Preserve the state of previously provisioned resources when an operation fails. Default: False
    ///   - notificationARNs: Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that CloudFormation associates with the stack. Specify an empty list to remove all notification topics.
    ///   - parameters: A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.
    ///   - resourceTypes: The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Control access with Identity and Access Management.  Only one of the Capabilities and ResourceType parameters can be specified.
    ///   - retainExceptOnCreate: When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
    ///   - roleARN: The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to update the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that is generated from your user credentials.
    ///   - rollbackConfiguration: The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
    ///   - stackName: The name or unique stack ID of the stack to update.
    ///   - stackPolicyBody: Structure that contains a new stack policy body. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
    ///   - stackPolicyDuringUpdateBody: Structure that contains the temporary overriding stack policy body. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
    ///   - stackPolicyDuringUpdateURL: Location of a file that contains the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
    ///   - stackPolicyURL: Location of a file that contains the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
    ///   - tags: Key-value pairs to associate with this stack. CloudFormation also propagates these tags to supported resources in the stack. You can specify a maximum number of 50 tags. If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you specify an empty value, CloudFormation removes all associated tags.
    ///   - templateBody: Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
    ///   - usePreviousTemplate: Reuse the existing template that is associated with the stack that you are updating. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateStack(
        capabilities: [Capability]? = nil,
        clientRequestToken: String? = nil,
        disableRollback: Bool? = nil,
        notificationARNs: [String]? = nil,
        parameters: [Parameter]? = nil,
        resourceTypes: [String]? = nil,
        retainExceptOnCreate: Bool? = nil,
        roleARN: String? = nil,
        rollbackConfiguration: RollbackConfiguration? = nil,
        stackName: String? = nil,
        stackPolicyBody: String? = nil,
        stackPolicyDuringUpdateBody: String? = nil,
        stackPolicyDuringUpdateURL: String? = nil,
        stackPolicyURL: String? = nil,
        tags: [Tag]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        usePreviousTemplate: Bool? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> UpdateStackOutput {
        let input = UpdateStackInput(
            capabilities: capabilities, 
            clientRequestToken: clientRequestToken, 
            disableRollback: disableRollback, 
            notificationARNs: notificationARNs, 
            parameters: parameters, 
            resourceTypes: resourceTypes, 
            retainExceptOnCreate: retainExceptOnCreate, 
            roleARN: roleARN, 
            rollbackConfiguration: rollbackConfiguration, 
            stackName: stackName, 
            stackPolicyBody: stackPolicyBody, 
            stackPolicyDuringUpdateBody: stackPolicyDuringUpdateBody, 
            stackPolicyDuringUpdateURL: stackPolicyDuringUpdateURL, 
            stackPolicyURL: stackPolicyURL, 
            tags: tags, 
            templateBody: templateBody, 
            templateURL: templateURL, 
            usePreviousTemplate: usePreviousTemplate
        )
        return try await self.updateStack(input, logger: logger)
    }

    /// Updates the parameter values for stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You can only update stack instances in Amazon Web Services Regions and accounts where they already exist; to create additional stack instances, use CreateStackInstances. During StackSet updates, any parameters overridden for a stack instance aren't updated, but retain their overridden value. You can only update the parameter values that are specified in the StackSet. To add or delete a parameter itself, use UpdateStackSet to update the StackSet template. If you add a parameter to a template, before you can override the parameter value specified in the StackSet you must first use UpdateStackSet to update all stack instances with the updated template and parameter value specified in the StackSet. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances.  The maximum number of organizational unit (OUs) supported by a UpdateStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    @Sendable
    @inlinable
    public func updateStackInstances(_ input: UpdateStackInstancesInput, logger: Logger = AWSClient.loggingDisabled) async throws -> UpdateStackInstancesOutput {
        try await self.client.execute(
            operation: "UpdateStackInstances", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates the parameter values for stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You can only update stack instances in Amazon Web Services Regions and accounts where they already exist; to create additional stack instances, use CreateStackInstances. During StackSet updates, any parameters overridden for a stack instance aren't updated, but retain their overridden value. You can only update the parameter values that are specified in the StackSet. To add or delete a parameter itself, use UpdateStackSet to update the StackSet template. If you add a parameter to a template, before you can override the parameter value specified in the StackSet you must first use UpdateStackSet to update all stack instances with the updated template and parameter value specified in the StackSet. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances.  The maximum number of organizational unit (OUs) supported by a UpdateStackInstances operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    ///
    /// Parameters:
    ///   - accounts: [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. You can specify Accounts or DeploymentTargets, but not both.
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - deploymentTargets: [Service-managed permissions] The Organizations accounts in which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values. You can specify Accounts or DeploymentTargets, but not both.
    ///   - operationId: The unique identifier for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically.
    ///   - operationPreferences: Preferences for how CloudFormation performs this StackSet operation.
    ///   - parameterOverrides: A list of input parameters whose values you want to update for the specified stack instances. Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance update operations:   To override the current value for a parameter, include the parameter and specify its value.   To leave an overridden parameter set to its present value, include the parameter and specify UsePreviousValue as true. (You can't specify both a value and set UsePreviousValue to true.)   To set an overridden parameter back to the value specified in the StackSet, specify a parameter list but don't include the parameter in the list.   To leave all parameters set to their present values, don't specify this property at all.   During StackSet updates, any parameter values overridden for a stack instance aren't updated, but retain their overridden value. You can only override the parameter values that are specified in the StackSet. To add or delete a parameter itself, use UpdateStackSet to update the StackSet template. If you add a parameter to a template, before you can override the parameter value specified in the StackSet you must first use UpdateStackSet to update all stack instances with the updated template and parameter value specified in the StackSet. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances.
    ///   - regions: The names of one or more Amazon Web Services Regions in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions.
    ///   - stackSetName: The name or unique ID of the StackSet associated with the stack instances.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateStackInstances(
        accounts: [String]? = nil,
        callAs: CallAs? = nil,
        deploymentTargets: DeploymentTargets? = nil,
        operationId: String? = UpdateStackInstancesInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        parameterOverrides: [Parameter]? = nil,
        regions: [String]? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> UpdateStackInstancesOutput {
        let input = UpdateStackInstancesInput(
            accounts: accounts, 
            callAs: callAs, 
            deploymentTargets: deploymentTargets, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            parameterOverrides: parameterOverrides, 
            regions: regions, 
            stackSetName: stackSetName
        )
        return try await self.updateStackInstances(input, logger: logger)
    }

    /// Updates the StackSet and associated stack instances in the specified accounts and Amazon Web Services Regions. Even if the StackSet operation created by updating the StackSet fails (completely or partially, below or above a specified failure tolerance), the StackSet is updated with your changes. Subsequent CreateStackInstances calls on the specified StackSet use the updated StackSet.  The maximum number of organizational unit (OUs) supported by a UpdateStackSet operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    @Sendable
    @inlinable
    public func updateStackSet(_ input: UpdateStackSetInput, logger: Logger = AWSClient.loggingDisabled) async throws -> UpdateStackSetOutput {
        try await self.client.execute(
            operation: "UpdateStackSet", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates the StackSet and associated stack instances in the specified accounts and Amazon Web Services Regions. Even if the StackSet operation created by updating the StackSet fails (completely or partially, below or above a specified failure tolerance), the StackSet is updated with your changes. Subsequent CreateStackInstances calls on the specified StackSet use the updated StackSet.  The maximum number of organizational unit (OUs) supported by a UpdateStackSet operation is 50. If you need more than 50, consider the following options:    Batch processing: If you don't want to expose your OU hierarchy, split up the operations into multiple calls with less than 50 OUs each.    Parent OU strategy: If you don't mind exposing the OU hierarchy, target a parent OU that contains all desired child OUs.
    ///
    /// Parameters:
    ///   - accounts: [Self-managed permissions] The accounts in which to update associated stack instances. If you specify accounts, you must also specify the Amazon Web Services Regions in which to update StackSet instances. To update all the stack instances associated with this StackSet, don't specify the Accounts or Regions properties. If the StackSet update includes changes to the template (that is, if the TemplateBody or TemplateURL properties are specified), or the Parameters property, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Amazon Web Services Regions. If the StackSet update does not include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Amazon Web Services Regions, while leaving all other stack instances with their existing stack instance status.
    ///   - administrationRoleARN: [Self-managed permissions] The Amazon Resource Name (ARN) of the IAM role to use to update this StackSet. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide. If you specified a customized administrator role when you created the StackSet, you must specify a customized administrator role, even if it is the same customized administrator role used with this StackSet previously.
    ///   - autoDeployment: [Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide. If you specify AutoDeployment, don't specify DeploymentTargets or Regions.
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - capabilities: In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the StackSet and its associated stack instances.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account, for example, by creating new IAM users. For those stacks sets, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some templates reference macros. If your StackSet template references one or more macros, you must update the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To update the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.  StackSets with service-managed permissions do not currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
    ///   - deploymentTargets: [Service-managed permissions] The Organizations accounts in which to update associated stack instances. To update all the stack instances associated with this StackSet, do not specify DeploymentTargets or Regions. If the StackSet update includes changes to the template (that is, if TemplateBody or TemplateURL is specified), or the Parameters, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Amazon Web Services Regions. If the StackSet update doesn't include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.
    ///   - description: A brief description of updates that you are making.
    ///   - executionRoleName: [Self-managed permissions] The name of the IAM execution role to use to update the stack set. If you do not specify an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the StackSet operation. Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets. If you specify a customized execution role, CloudFormation uses that role to update the stack. If you do not specify a customized execution role, CloudFormation performs the update using the role previously associated with the StackSet, so long as you have permissions to perform operations on the StackSet.
    ///   - managedExecution: Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
    ///   - operationId: The unique ID for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, CloudFormation generates one automatically. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
    ///   - operationPreferences: Preferences for how CloudFormation performs this StackSet operation.
    ///   - parameters: A list of input parameters for the StackSet template.
    ///   - permissionModel: Describes how the IAM roles required for StackSet operations are created. You cannot modify PermissionModel if there are stack instances associated with your stack set.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
    ///   - regions: The Amazon Web Services Regions in which to update associated stack instances. If you specify Regions, you must also specify accounts in which to update StackSet instances. To update all the stack instances associated with this StackSet, do not specify the Accounts or Regions properties. If the StackSet update includes changes to the template (that is, if the TemplateBody or TemplateURL properties are specified), or the Parameters property, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Regions. If the StackSet update does not include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to update.
    ///   - tags: The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. You can specify a maximum number of 50 tags. If you specify tags for this parameter, those tags replace any list of tags that are currently associated with this StackSet. This means:   If you don't specify this parameter, CloudFormation doesn't modify the stack's tags.   If you specify any tags using this parameter, you must specify all the tags that you want associated with this StackSet, even tags you've specified before (for example, when creating the StackSet or during a previous update of the StackSet.). Any tags that you don't include in the updated list of tags are removed from the StackSet, and therefore from the stacks and resources as well.   If you specify an empty value, CloudFormation removes all currently associated tags.   If you specify new tags as part of an UpdateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you omit tags that are currently associated with the StackSet from the list of tags you specify, CloudFormation assumes that you want to remove those tags from the StackSet, and checks to see if you have permission to untag resources. If you don't have the necessary permission(s), the entire UpdateStackSet action fails with an access denied error, and the StackSet is not updated.
    ///   - templateBody: The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. S3 static website URLs are not supported. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
    ///   - usePreviousTemplate: Use the existing template that's associated with the StackSet that you're updating. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateStackSet(
        accounts: [String]? = nil,
        administrationRoleARN: String? = nil,
        autoDeployment: AutoDeployment? = nil,
        callAs: CallAs? = nil,
        capabilities: [Capability]? = nil,
        deploymentTargets: DeploymentTargets? = nil,
        description: String? = nil,
        executionRoleName: String? = nil,
        managedExecution: ManagedExecution? = nil,
        operationId: String? = UpdateStackSetInput.idempotencyToken(),
        operationPreferences: StackSetOperationPreferences? = nil,
        parameters: [Parameter]? = nil,
        permissionModel: PermissionModels? = nil,
        regions: [String]? = nil,
        stackSetName: String? = nil,
        tags: [Tag]? = nil,
        templateBody: String? = nil,
        templateURL: String? = nil,
        usePreviousTemplate: Bool? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> UpdateStackSetOutput {
        let input = UpdateStackSetInput(
            accounts: accounts, 
            administrationRoleARN: administrationRoleARN, 
            autoDeployment: autoDeployment, 
            callAs: callAs, 
            capabilities: capabilities, 
            deploymentTargets: deploymentTargets, 
            description: description, 
            executionRoleName: executionRoleName, 
            managedExecution: managedExecution, 
            operationId: operationId, 
            operationPreferences: operationPreferences, 
            parameters: parameters, 
            permissionModel: permissionModel, 
            regions: regions, 
            stackSetName: stackSetName, 
            tags: tags, 
            templateBody: templateBody, 
            templateURL: templateURL, 
            usePreviousTemplate: usePreviousTemplate
        )
        return try await self.updateStackSet(input, logger: logger)
    }

    /// Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
    @Sendable
    @inlinable
    public func updateTerminationProtection(_ input: UpdateTerminationProtectionInput, logger: Logger = AWSClient.loggingDisabled) async throws -> UpdateTerminationProtectionOutput {
        try await self.client.execute(
            operation: "UpdateTerminationProtection", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
    ///
    /// Parameters:
    ///   - enableTerminationProtection: Whether to enable termination protection on the specified stack.
    ///   - stackName: The name or unique ID of the stack for which you want to set termination protection.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateTerminationProtection(
        enableTerminationProtection: Bool? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> UpdateTerminationProtectionOutput {
        let input = UpdateTerminationProtectionInput(
            enableTerminationProtection: enableTerminationProtection, 
            stackName: stackName
        )
        return try await self.updateTerminationProtection(input, logger: logger)
    }

    /// Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error.
    @Sendable
    @inlinable
    public func validateTemplate(_ input: ValidateTemplateInput, logger: Logger = AWSClient.loggingDisabled) async throws -> ValidateTemplateOutput {
        try await self.client.execute(
            operation: "ValidateTemplate", 
            path: "/", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error.
    ///
    /// Parameters:
    ///   - templateBody: Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
    ///   - templateURL: The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
    ///   - logger: Logger use during operation
    @inlinable
    public func validateTemplate(
        templateBody: String? = nil,
        templateURL: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ValidateTemplateOutput {
        let input = ValidateTemplateInput(
            templateBody: templateBody, 
            templateURL: templateURL
        )
        return try await self.validateTemplate(input, logger: logger)
    }
}

extension CloudFormation {
    /// Initializer required by `AWSService.with(middlewares:timeout:byteBufferAllocator:options)`. You are not able to use this initializer directly as there are not public
    /// initializers for `AWSServiceConfig.Patch`. Please use `AWSService.with(middlewares:timeout:byteBufferAllocator:options)` instead.
    public init(from: CloudFormation, patch: AWSServiceConfig.Patch) {
        self.client = from.client
        self.config = from.config.with(patch: patch)
    }
}

// MARK: Paginators

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension CloudFormation {
    /// Return PaginatorSequence for operation ``describeAccountLimits(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeAccountLimitsPaginator(
        _ input: DescribeAccountLimitsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeAccountLimitsInput, DescribeAccountLimitsOutput> {
        return .init(
            input: input,
            command: self.describeAccountLimits,
            inputKey: \DescribeAccountLimitsInput.nextToken,
            outputKey: \DescribeAccountLimitsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeAccountLimits(_:logger:)``.
    ///
    /// - Parameters:
    ///   - logger: Logger used for logging
    @inlinable
    public func describeAccountLimitsPaginator(
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeAccountLimitsInput, DescribeAccountLimitsOutput> {
        let input = DescribeAccountLimitsInput(
        )
        return self.describeAccountLimitsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeStackEvents(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStackEventsPaginator(
        _ input: DescribeStackEventsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeStackEventsInput, DescribeStackEventsOutput> {
        return .init(
            input: input,
            command: self.describeStackEvents,
            inputKey: \DescribeStackEventsInput.nextToken,
            outputKey: \DescribeStackEventsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeStackEvents(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackName: The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStackEventsPaginator(
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeStackEventsInput, DescribeStackEventsOutput> {
        let input = DescribeStackEventsInput(
            stackName: stackName
        )
        return self.describeStackEventsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeStackResourceDrifts(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStackResourceDriftsPaginator(
        _ input: DescribeStackResourceDriftsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeStackResourceDriftsInput, DescribeStackResourceDriftsOutput> {
        return .init(
            input: input,
            command: self.describeStackResourceDrifts,
            inputKey: \DescribeStackResourceDriftsInput.nextToken,
            outputKey: \DescribeStackResourceDriftsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeStackResourceDrifts(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - stackName: The name of the stack for which you want drift information.
    ///   - stackResourceDriftStatusFilters: The resource drift status values to use as filters for the resource drift results returned.    DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.    UNKNOWN: CloudFormation could not run drift detection for the resource.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStackResourceDriftsPaginator(
        maxResults: Int? = nil,
        stackName: String? = nil,
        stackResourceDriftStatusFilters: [StackResourceDriftStatus]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeStackResourceDriftsInput, DescribeStackResourceDriftsOutput> {
        let input = DescribeStackResourceDriftsInput(
            maxResults: maxResults, 
            stackName: stackName, 
            stackResourceDriftStatusFilters: stackResourceDriftStatusFilters
        )
        return self.describeStackResourceDriftsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStacksPaginator(
        _ input: DescribeStacksInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeStacksInput, DescribeStacksOutput> {
        return .init(
            input: input,
            command: self.describeStacks,
            inputKey: \DescribeStacksInput.nextToken,
            outputKey: \DescribeStacksOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeStacksPaginator(
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeStacksInput, DescribeStacksOutput> {
        let input = DescribeStacksInput(
            stackName: stackName
        )
        return self.describeStacksPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listChangeSets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listChangeSetsPaginator(
        _ input: ListChangeSetsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListChangeSetsInput, ListChangeSetsOutput> {
        return .init(
            input: input,
            command: self.listChangeSets,
            inputKey: \ListChangeSetsInput.nextToken,
            outputKey: \ListChangeSetsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listChangeSets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackName: The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.
    ///   - logger: Logger used for logging
    @inlinable
    public func listChangeSetsPaginator(
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListChangeSetsInput, ListChangeSetsOutput> {
        let input = ListChangeSetsInput(
            stackName: stackName
        )
        return self.listChangeSetsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listExports(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listExportsPaginator(
        _ input: ListExportsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListExportsInput, ListExportsOutput> {
        return .init(
            input: input,
            command: self.listExports,
            inputKey: \ListExportsInput.nextToken,
            outputKey: \ListExportsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listExports(_:logger:)``.
    ///
    /// - Parameters:
    ///   - logger: Logger used for logging
    @inlinable
    public func listExportsPaginator(
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListExportsInput, ListExportsOutput> {
        let input = ListExportsInput(
        )
        return self.listExportsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listGeneratedTemplates(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listGeneratedTemplatesPaginator(
        _ input: ListGeneratedTemplatesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListGeneratedTemplatesInput, ListGeneratedTemplatesOutput> {
        return .init(
            input: input,
            command: self.listGeneratedTemplates,
            inputKey: \ListGeneratedTemplatesInput.nextToken,
            outputKey: \ListGeneratedTemplatesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listGeneratedTemplates(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListGeneratedTemplates API action will return at most 50 results in each response. The maximum value is 100.
    ///   - logger: Logger used for logging
    @inlinable
    public func listGeneratedTemplatesPaginator(
        maxResults: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListGeneratedTemplatesInput, ListGeneratedTemplatesOutput> {
        let input = ListGeneratedTemplatesInput(
            maxResults: maxResults
        )
        return self.listGeneratedTemplatesPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listImports(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listImportsPaginator(
        _ input: ListImportsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListImportsInput, ListImportsOutput> {
        return .init(
            input: input,
            command: self.listImports,
            inputKey: \ListImportsInput.nextToken,
            outputKey: \ListImportsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listImports(_:logger:)``.
    ///
    /// - Parameters:
    ///   - exportName: The name of the exported output value. CloudFormation returns the stack names that are importing this value.
    ///   - logger: Logger used for logging
    @inlinable
    public func listImportsPaginator(
        exportName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListImportsInput, ListImportsOutput> {
        let input = ListImportsInput(
            exportName: exportName
        )
        return self.listImportsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listResourceScanRelatedResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScanRelatedResourcesPaginator(
        _ input: ListResourceScanRelatedResourcesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListResourceScanRelatedResourcesInput, ListResourceScanRelatedResourcesOutput> {
        return .init(
            input: input,
            command: self.listResourceScanRelatedResources,
            inputKey: \ListResourceScanRelatedResourcesInput.nextToken,
            outputKey: \ListResourceScanRelatedResourcesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listResourceScanRelatedResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanRelatedResources API action will return up to 100 results in each response. The maximum value is 100.
    ///   - resources: The list of resources for which you want to get the related resources. Up to 100 resources can be provided.
    ///   - resourceScanId: The Amazon Resource Name (ARN) of the resource scan.
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScanRelatedResourcesPaginator(
        maxResults: Int? = nil,
        resources: [ScannedResourceIdentifier]? = nil,
        resourceScanId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListResourceScanRelatedResourcesInput, ListResourceScanRelatedResourcesOutput> {
        let input = ListResourceScanRelatedResourcesInput(
            maxResults: maxResults, 
            resources: resources, 
            resourceScanId: resourceScanId
        )
        return self.listResourceScanRelatedResourcesPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listResourceScanResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScanResourcesPaginator(
        _ input: ListResourceScanResourcesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListResourceScanResourcesInput, ListResourceScanResourcesOutput> {
        return .init(
            input: input,
            command: self.listResourceScanResources,
            inputKey: \ListResourceScanResourcesInput.nextToken,
            outputKey: \ListResourceScanResourcesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listResourceScanResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100.
    ///   - resourceIdentifier: If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).
    ///   - resourceScanId: The Amazon Resource Name (ARN) of the resource scan.
    ///   - resourceTypePrefix: If specified, the returned resources will be of any of the resource types with the specified prefix.
    ///   - tagKey: If specified, the returned resources will have a matching tag key.
    ///   - tagValue: If specified, the returned resources will have a matching tag value.
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScanResourcesPaginator(
        maxResults: Int? = nil,
        resourceIdentifier: String? = nil,
        resourceScanId: String? = nil,
        resourceTypePrefix: String? = nil,
        tagKey: String? = nil,
        tagValue: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListResourceScanResourcesInput, ListResourceScanResourcesOutput> {
        let input = ListResourceScanResourcesInput(
            maxResults: maxResults, 
            resourceIdentifier: resourceIdentifier, 
            resourceScanId: resourceScanId, 
            resourceTypePrefix: resourceTypePrefix, 
            tagKey: tagKey, 
            tagValue: tagValue
        )
        return self.listResourceScanResourcesPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listResourceScans(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScansPaginator(
        _ input: ListResourceScansInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListResourceScansInput, ListResourceScansOutput> {
        return .init(
            input: input,
            command: self.listResourceScans,
            inputKey: \ListResourceScansInput.nextToken,
            outputKey: \ListResourceScansOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listResourceScans(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.
    ///   - scanTypeFilter: The scan type that you want to get summary information about. The default is FULL.
    ///   - logger: Logger used for logging
    @inlinable
    public func listResourceScansPaginator(
        maxResults: Int? = nil,
        scanTypeFilter: ScanType? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListResourceScansInput, ListResourceScansOutput> {
        let input = ListResourceScansInput(
            maxResults: maxResults, 
            scanTypeFilter: scanTypeFilter
        )
        return self.listResourceScansPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackInstances(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackInstancesPaginator(
        _ input: ListStackInstancesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackInstancesInput, ListStackInstancesOutput> {
        return .init(
            input: input,
            command: self.listStackInstances,
            inputKey: \ListStackInstancesInput.nextToken,
            outputKey: \ListStackInstancesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackInstances(_:logger:)``.
    ///
    /// - Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - filters: The filter to apply to stack instances
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - stackInstanceAccount: The name of the Amazon Web Services account that you want to list stack instances for.
    ///   - stackInstanceRegion: The name of the Region where you want to list stack instances.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to list stack instances for.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackInstancesPaginator(
        callAs: CallAs? = nil,
        filters: [StackInstanceFilter]? = nil,
        maxResults: Int? = nil,
        stackInstanceAccount: String? = nil,
        stackInstanceRegion: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackInstancesInput, ListStackInstancesOutput> {
        let input = ListStackInstancesInput(
            callAs: callAs, 
            filters: filters, 
            maxResults: maxResults, 
            stackInstanceAccount: stackInstanceAccount, 
            stackInstanceRegion: stackInstanceRegion, 
            stackSetName: stackSetName
        )
        return self.listStackInstancesPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackRefactorActions(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackRefactorActionsPaginator(
        _ input: ListStackRefactorActionsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackRefactorActionsInput, ListStackRefactorActionsOutput> {
        return .init(
            input: input,
            command: self.listStackRefactorActions,
            inputKey: \ListStackRefactorActionsInput.nextToken,
            outputKey: \ListStackRefactorActionsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackRefactorActions(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackRefactorActionsPaginator(
        maxResults: Int? = nil,
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackRefactorActionsInput, ListStackRefactorActionsOutput> {
        let input = ListStackRefactorActionsInput(
            maxResults: maxResults, 
            stackRefactorId: stackRefactorId
        )
        return self.listStackRefactorActionsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackRefactors(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackRefactorsPaginator(
        _ input: ListStackRefactorsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackRefactorsInput, ListStackRefactorsOutput> {
        return .init(
            input: input,
            command: self.listStackRefactors,
            inputKey: \ListStackRefactorsInput.nextToken,
            outputKey: \ListStackRefactorsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackRefactors(_:logger:)``.
    ///
    /// - Parameters:
    ///   - executionStatusFilter: Execution status to use as a filter. Specify one or more execution status codes to list only stack refactors with the specified execution status codes.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackRefactorsPaginator(
        executionStatusFilter: [StackRefactorExecutionStatus]? = nil,
        maxResults: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackRefactorsInput, ListStackRefactorsOutput> {
        let input = ListStackRefactorsInput(
            executionStatusFilter: executionStatusFilter, 
            maxResults: maxResults
        )
        return self.listStackRefactorsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackResourcesPaginator(
        _ input: ListStackResourcesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackResourcesInput, ListStackResourcesOutput> {
        return .init(
            input: input,
            command: self.listStackResources,
            inputKey: \ListStackResourcesInput.nextToken,
            outputKey: \ListStackResourcesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackResources(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackName: The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackResourcesPaginator(
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackResourcesInput, ListStackResourcesOutput> {
        let input = ListStackResourcesInput(
            stackName: stackName
        )
        return self.listStackResourcesPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackSetOperationResults(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetOperationResultsPaginator(
        _ input: ListStackSetOperationResultsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackSetOperationResultsInput, ListStackSetOperationResultsOutput> {
        return .init(
            input: input,
            command: self.listStackSetOperationResults,
            inputKey: \ListStackSetOperationResultsInput.nextToken,
            outputKey: \ListStackSetOperationResultsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackSetOperationResults(_:logger:)``.
    ///
    /// - Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - filters: The filter to apply to operation results.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - operationId: The ID of the StackSet operation.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to get operation results for.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetOperationResultsPaginator(
        callAs: CallAs? = nil,
        filters: [OperationResultFilter]? = nil,
        maxResults: Int? = nil,
        operationId: String? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackSetOperationResultsInput, ListStackSetOperationResultsOutput> {
        let input = ListStackSetOperationResultsInput(
            callAs: callAs, 
            filters: filters, 
            maxResults: maxResults, 
            operationId: operationId, 
            stackSetName: stackSetName
        )
        return self.listStackSetOperationResultsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackSetOperations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetOperationsPaginator(
        _ input: ListStackSetOperationsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackSetOperationsInput, ListStackSetOperationsOutput> {
        return .init(
            input: input,
            command: self.listStackSetOperations,
            inputKey: \ListStackSetOperationsInput.nextToken,
            outputKey: \ListStackSetOperationsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackSetOperations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - stackSetName: The name or unique ID of the StackSet that you want to get operation summaries for.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetOperationsPaginator(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        stackSetName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackSetOperationsInput, ListStackSetOperationsOutput> {
        let input = ListStackSetOperationsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            stackSetName: stackSetName
        )
        return self.listStackSetOperationsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStackSets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetsPaginator(
        _ input: ListStackSetsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStackSetsInput, ListStackSetsOutput> {
        return .init(
            input: input,
            command: self.listStackSets,
            inputKey: \ListStackSetsInput.nextToken,
            outputKey: \ListStackSetsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStackSets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - callAs: [Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - status: The status of the StackSets that you want to get summary information about.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStackSetsPaginator(
        callAs: CallAs? = nil,
        maxResults: Int? = nil,
        status: StackSetStatus? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStackSetsInput, ListStackSetsOutput> {
        let input = ListStackSetsInput(
            callAs: callAs, 
            maxResults: maxResults, 
            status: status
        )
        return self.listStackSetsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listStacksPaginator(
        _ input: ListStacksInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListStacksInput, ListStacksOutput> {
        return .init(
            input: input,
            command: self.listStacks,
            inputKey: \ListStacksInput.nextToken,
            outputKey: \ListStacksOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackStatusFilter: Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.
    ///   - logger: Logger used for logging
    @inlinable
    public func listStacksPaginator(
        stackStatusFilter: [StackStatus]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListStacksInput, ListStacksOutput> {
        let input = ListStacksInput(
            stackStatusFilter: stackStatusFilter
        )
        return self.listStacksPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listTypeRegistrations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypeRegistrationsPaginator(
        _ input: ListTypeRegistrationsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListTypeRegistrationsInput, ListTypeRegistrationsOutput> {
        return .init(
            input: input,
            command: self.listTypeRegistrations,
            inputKey: \ListTypeRegistrationsInput.nextToken,
            outputKey: \ListTypeRegistrationsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listTypeRegistrations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - registrationStatusFilter: The current status of the extension registration request. The default is IN_PROGRESS.
    ///   - type: The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeArn: The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypeRegistrationsPaginator(
        maxResults: Int? = nil,
        registrationStatusFilter: RegistrationStatus? = nil,
        type: RegistryType? = nil,
        typeArn: String? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListTypeRegistrationsInput, ListTypeRegistrationsOutput> {
        let input = ListTypeRegistrationsInput(
            maxResults: maxResults, 
            registrationStatusFilter: registrationStatusFilter, 
            type: type, 
            typeArn: typeArn, 
            typeName: typeName
        )
        return self.listTypeRegistrationsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listTypeVersions(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypeVersionsPaginator(
        _ input: ListTypeVersionsInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListTypeVersionsInput, ListTypeVersionsOutput> {
        return .init(
            input: input,
            command: self.listTypeVersions,
            inputKey: \ListTypeVersionsInput.nextToken,
            outputKey: \ListTypeVersionsOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listTypeVersions(_:logger:)``.
    ///
    /// - Parameters:
    ///   - arn: The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - deprecatedStatus: The deprecation status of the extension versions that you want to get summary information about. Valid values include:    LIVE: The extension version is registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope.    DEPRECATED: The extension version has been deregistered and can no longer be used in CloudFormation operations.   The default is LIVE.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - publisherId: The publisher ID of the extension publisher. Extensions published by Amazon aren't assigned a publisher ID.
    ///   - type: The kind of the extension. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - typeName: The name of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypeVersionsPaginator(
        arn: String? = nil,
        deprecatedStatus: DeprecatedStatus? = nil,
        maxResults: Int? = nil,
        publisherId: String? = nil,
        type: RegistryType? = nil,
        typeName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListTypeVersionsInput, ListTypeVersionsOutput> {
        let input = ListTypeVersionsInput(
            arn: arn, 
            deprecatedStatus: deprecatedStatus, 
            maxResults: maxResults, 
            publisherId: publisherId, 
            type: type, 
            typeName: typeName
        )
        return self.listTypeVersionsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listTypes(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypesPaginator(
        _ input: ListTypesInput,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListTypesInput, ListTypesOutput> {
        return .init(
            input: input,
            command: self.listTypes,
            inputKey: \ListTypesInput.nextToken,
            outputKey: \ListTypesOutput.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listTypes(_:logger:)``.
    ///
    /// - Parameters:
    ///   - deprecatedStatus: The deprecation status of the extension that you want to get summary information about. Valid values include:    LIVE: The extension is registered for use in CloudFormation operations.    DEPRECATED: The extension has been deregistered and can no longer be used in CloudFormation operations.
    ///   - filters: Filter criteria to use in determining which extensions to return. Filters must be compatible with Visibility to return valid results. For example, specifying AWS_TYPES for Category and PRIVATE for Visibility returns an empty list of types, but specifying PUBLIC for Visibility returns the desired list.
    ///   - maxResults: The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
    ///   - provisioningType: For resource types, the provisioning behavior of the resource type. CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted. Valid values include:    FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.    IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.    NON_PROVISIONABLE: The resource type doesn't include create, read, and delete handlers, and therefore can't actually be provisioned.   The default is FULLY_MUTABLE.
    ///   - type: The type of extension.
    ///   - visibility: The scope at which the extensions are visible and usable in CloudFormation operations. Valid values include:    PRIVATE: Extensions that are visible and usable within this account and Region. This includes:   Private extensions you have registered in this account and Region.   Public extensions that you have activated in this account and Region.      PUBLIC: Extensions that are publicly visible and available to be activated within any Amazon Web Services account. This includes extensions from Amazon Web Services and third-party publishers.   The default is PRIVATE.
    ///   - logger: Logger used for logging
    @inlinable
    public func listTypesPaginator(
        deprecatedStatus: DeprecatedStatus? = nil,
        filters: TypeFilters? = nil,
        maxResults: Int? = nil,
        provisioningType: ProvisioningType? = nil,
        type: RegistryType? = nil,
        visibility: Visibility? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListTypesInput, ListTypesOutput> {
        let input = ListTypesInput(
            deprecatedStatus: deprecatedStatus, 
            filters: filters, 
            maxResults: maxResults, 
            provisioningType: provisioningType, 
            type: type, 
            visibility: visibility
        )
        return self.listTypesPaginator(input, logger: logger)
    }
}

extension CloudFormation.DescribeAccountLimitsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.DescribeAccountLimitsInput {
        return .init(
            nextToken: token
        )
    }
}

extension CloudFormation.DescribeStackEventsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.DescribeStackEventsInput {
        return .init(
            nextToken: token,
            stackName: self.stackName
        )
    }
}

extension CloudFormation.DescribeStackResourceDriftsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.DescribeStackResourceDriftsInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            stackName: self.stackName,
            stackResourceDriftStatusFilters: self.stackResourceDriftStatusFilters
        )
    }
}

extension CloudFormation.DescribeStacksInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.DescribeStacksInput {
        return .init(
            nextToken: token,
            stackName: self.stackName
        )
    }
}

extension CloudFormation.ListChangeSetsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListChangeSetsInput {
        return .init(
            nextToken: token,
            stackName: self.stackName
        )
    }
}

extension CloudFormation.ListExportsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListExportsInput {
        return .init(
            nextToken: token
        )
    }
}

extension CloudFormation.ListGeneratedTemplatesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListGeneratedTemplatesInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token
        )
    }
}

extension CloudFormation.ListImportsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListImportsInput {
        return .init(
            exportName: self.exportName,
            nextToken: token
        )
    }
}

extension CloudFormation.ListResourceScanRelatedResourcesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListResourceScanRelatedResourcesInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            resources: self.resources,
            resourceScanId: self.resourceScanId
        )
    }
}

extension CloudFormation.ListResourceScanResourcesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListResourceScanResourcesInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            resourceIdentifier: self.resourceIdentifier,
            resourceScanId: self.resourceScanId,
            resourceTypePrefix: self.resourceTypePrefix,
            tagKey: self.tagKey,
            tagValue: self.tagValue
        )
    }
}

extension CloudFormation.ListResourceScansInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListResourceScansInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            scanTypeFilter: self.scanTypeFilter
        )
    }
}

extension CloudFormation.ListStackInstancesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackInstancesInput {
        return .init(
            callAs: self.callAs,
            filters: self.filters,
            maxResults: self.maxResults,
            nextToken: token,
            stackInstanceAccount: self.stackInstanceAccount,
            stackInstanceRegion: self.stackInstanceRegion,
            stackSetName: self.stackSetName
        )
    }
}

extension CloudFormation.ListStackRefactorActionsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackRefactorActionsInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            stackRefactorId: self.stackRefactorId
        )
    }
}

extension CloudFormation.ListStackRefactorsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackRefactorsInput {
        return .init(
            executionStatusFilter: self.executionStatusFilter,
            maxResults: self.maxResults,
            nextToken: token
        )
    }
}

extension CloudFormation.ListStackResourcesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackResourcesInput {
        return .init(
            nextToken: token,
            stackName: self.stackName
        )
    }
}

extension CloudFormation.ListStackSetOperationResultsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackSetOperationResultsInput {
        return .init(
            callAs: self.callAs,
            filters: self.filters,
            maxResults: self.maxResults,
            nextToken: token,
            operationId: self.operationId,
            stackSetName: self.stackSetName
        )
    }
}

extension CloudFormation.ListStackSetOperationsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackSetOperationsInput {
        return .init(
            callAs: self.callAs,
            maxResults: self.maxResults,
            nextToken: token,
            stackSetName: self.stackSetName
        )
    }
}

extension CloudFormation.ListStackSetsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStackSetsInput {
        return .init(
            callAs: self.callAs,
            maxResults: self.maxResults,
            nextToken: token,
            status: self.status
        )
    }
}

extension CloudFormation.ListStacksInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListStacksInput {
        return .init(
            nextToken: token,
            stackStatusFilter: self.stackStatusFilter
        )
    }
}

extension CloudFormation.ListTypeRegistrationsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListTypeRegistrationsInput {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            registrationStatusFilter: self.registrationStatusFilter,
            type: self.type,
            typeArn: self.typeArn,
            typeName: self.typeName
        )
    }
}

extension CloudFormation.ListTypeVersionsInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListTypeVersionsInput {
        return .init(
            arn: self.arn,
            deprecatedStatus: self.deprecatedStatus,
            maxResults: self.maxResults,
            nextToken: token,
            publisherId: self.publisherId,
            type: self.type,
            typeName: self.typeName
        )
    }
}

extension CloudFormation.ListTypesInput: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> CloudFormation.ListTypesInput {
        return .init(
            deprecatedStatus: self.deprecatedStatus,
            filters: self.filters,
            maxResults: self.maxResults,
            nextToken: token,
            provisioningType: self.provisioningType,
            type: self.type,
            visibility: self.visibility
        )
    }
}

// MARK: Waiters

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension CloudFormation {
    /// Waiter for operation ``describeChangeSet(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilChangeSetCreateComplete(
        _ input: DescribeChangeSetInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeChangeSetInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESPathMatcher("status", expected: "CREATE_COMPLETE")),
                .init(state: .failure, matcher: try! JMESPathMatcher("status", expected: "FAILED")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeChangeSet
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeChangeSet(_:logger:)``.
    ///
    /// - Parameters:
    ///   - changeSetName: The name or Amazon Resource Name (ARN) of the change set that you want to describe.
    ///   - includePropertyValues: If true, the returned changes include detailed changes in the property values.
    ///   - nextToken: A string (provided by the DescribeChangeSet response output) that identifies the next page of information that you want to retrieve.
    ///   - stackName: If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilChangeSetCreateComplete(
        changeSetName: String? = nil,
        includePropertyValues: Bool? = nil,
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeChangeSetInput(
            changeSetName: changeSetName, 
            includePropertyValues: includePropertyValues, 
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilChangeSetCreateComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackCreateComplete(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "CREATE_COMPLETE")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_COMPLETE")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_IN_PROGRESS")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_FAILED")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_IN_PROGRESS")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_FAILED")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS")),
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "CREATE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "DELETE_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "DELETE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackCreateComplete(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackCreateComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackDeleteComplete(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "DELETE_COMPLETE")),
                .init(state: .success, matcher: AWSErrorCodeMatcher("ValidationError")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "DELETE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "CREATE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_IN_PROGRESS")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_COMPLETE")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackDeleteComplete(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackDeleteComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackExists(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: AWSSuccessMatcher()),
                .init(state: .retry, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(5),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackExists(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackExists(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackImportComplete(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "IMPORT_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "IMPORT_ROLLBACK_IN_PROGRESS")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "IMPORT_ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "IMPORT_ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackImportComplete(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackImportComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStackRefactor(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRefactorCreateComplete(
        _ input: DescribeStackRefactorInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStackRefactorInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESPathMatcher("status", expected: "CREATE_COMPLETE")),
                .init(state: .failure, matcher: try! JMESPathMatcher("status", expected: "CREATE_FAILED")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(5),
            command: self.describeStackRefactor
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStackRefactor(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRefactorCreateComplete(
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStackRefactorInput(
            stackRefactorId: stackRefactorId
        )
        try await self.waitUntilStackRefactorCreateComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStackRefactor(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRefactorExecuteComplete(
        _ input: DescribeStackRefactorInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStackRefactorInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESPathMatcher("executionStatus", expected: "EXECUTE_COMPLETE")),
                .init(state: .failure, matcher: try! JMESPathMatcher("executionStatus", expected: "EXECUTE_FAILED")),
                .init(state: .failure, matcher: try! JMESPathMatcher("executionStatus", expected: "ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(15),
            command: self.describeStackRefactor
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStackRefactor(_:logger:)``.
    ///
    /// - Parameters:
    ///   - stackRefactorId: The ID associated with the stack refactor created from the CreateStackRefactor action.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRefactorExecuteComplete(
        stackRefactorId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStackRefactorInput(
            stackRefactorId: stackRefactorId
        )
        try await self.waitUntilStackRefactorExecuteComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRollbackComplete(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "DELETE_FAILED")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackRollbackComplete(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackRollbackComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackUpdateComplete(
        _ input: DescribeStacksInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeStacksInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESAllPathMatcher("stacks[].stackStatus", expected: "UPDATE_COMPLETE")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_FAILED")),
                .init(state: .failure, matcher: try! JMESAnyPathMatcher("stacks[].stackStatus", expected: "UPDATE_ROLLBACK_COMPLETE")),
                .init(state: .failure, matcher: AWSErrorCodeMatcher("ValidationError")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeStacks
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeStacks(_:logger:)``.
    ///
    /// - Parameters:
    ///   - nextToken: A string that identifies the next page of stacks that you want to retrieve.
    ///   - stackName:  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilStackUpdateComplete(
        nextToken: String? = nil,
        stackName: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeStacksInput(
            nextToken: nextToken, 
            stackName: stackName
        )
        try await self.waitUntilStackUpdateComplete(input, logger: logger)
    }

    /// Waiter for operation ``describeTypeRegistration(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilTypeRegistrationComplete(
        _ input: DescribeTypeRegistrationInput,
        maxWaitTime: TimeAmount? = nil,
        logger: Logger = AWSClient.loggingDisabled
    ) async throws {
        let waiter = AWSClient.Waiter<DescribeTypeRegistrationInput, _>(
            acceptors: [
                .init(state: .success, matcher: try! JMESPathMatcher("progressStatus", expected: "COMPLETE")),
                .init(state: .failure, matcher: try! JMESPathMatcher("progressStatus", expected: "FAILED")),
            ],
            minDelayTime: .seconds(30),
            command: self.describeTypeRegistration
        )
        return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
    }
    /// Waiter for operation ``describeTypeRegistration(_:logger:)``.
    ///
    /// - Parameters:
    ///   - registrationToken: The identifier for this registration request. This registration token is generated by CloudFormation when you initiate a registration request using RegisterType.
    ///   - logger: Logger used for logging
    @inlinable
    public func waitUntilTypeRegistrationComplete(
        registrationToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DescribeTypeRegistrationInput(
            registrationToken: registrationToken
        )
        try await self.waitUntilTypeRegistrationComplete(input, logger: logger)
    }
}
